/**
* Theme Name:        Shoptimizer-Child
* Theme URI:       	 https://www.commercegurus.com/wordpress-themes/shoptimizer
* Template:          shoptimizer
* Author:            Softinet
* Author URI:        https://www.commercegurus.com/
* Description:       This is a child theme of Shoptimizer, generated by Softinet.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       shoptimizer-child
* Requires at least: 5.6
* Tested up to:      6.5
* Requires PHP:      7.3
* Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options

*/

/* CSS Desktop */
@media (min-width: 993px) {

	.site-header .custom-logo-link img {
	  height: 100px !important;
	}
	.col-full.main-header {
		padding-top: 0px !important;
		padding-bottom: 0px !important;
	}
	  .site-header .site-search,  .secondary-navigation {
		padding-top: 20px;
		padding-bottom: 20px;
	  }
	.site-search input[type="search"] {
	  border: 0;
	  background: #f8f8f8;
	  border: 1px solid #082941 !important;
	border-radius: 25px;
	}
	.site-search form::before {
	background-color: #082941 !important;
	}
	.secondary-navigation .menu-item {
		padding: 0 !important;
	}
	.secondary-navigation .icon-wrapper svg {
		width: 25px !important;
		height: 25px !important;
	}
	.secondary-navigation ul li a {
		padding: 0.7em 0.5em 0 !important;
		font-size: 12px !important;
		padding-top: 35px !important;
	}
	.widget_shopping_cart a.button{
		color: #ffffff !important;
	}
	/* Menu superior fixo no topo */
	.main-header{
		max-width: 100% !important;
	}
	.main-navigation ul.menu li{
		margin-right: 20px !important;
	}
	.shoptimizer-primary-navigation{
		max-width: 90% !important;
	}
	.secondary-navigation .menu a {
		color: transparent !important;
	}
	.secondary-navigation .menu a:hover {
		color: #000000 !important;
	}
	.site-header {
		position: sticky !important;
		z-index: 20 !important;
		top: 0 !important;
		height: 100px !important;
	}
	.col-full-nav {
		position: sticky !important;
		/*z-index: 30 !important;*/
		top: 100px !important;
	  }

	.main-navigation ul.menu li {
	  margin-right: 10px !important;
	}
	
	.main-navigation ul.menu li.full-width > .sub-menu-wrapper {
		z-index: 20 !important;
	}
	.main-navigation ul li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li {
		width: 23%;
		padding-right: 0px !important;
		padding-left: 4px !important;
		border-left: 0px none !important;
	}

	 .main-navigation ul li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li:last-child {
		border-right: 0px none !important;
	  }

	/* Container de swatches: alinhamento horizontal */
	/* ALINHAMENTO HORIZONTAL */
	.single-product .cgkit-as-wrap .cgkit-attribute-swatches {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	/* SWATCHS - TAMANHO + CANTO */
	.single-product .cgkit-attribute-swatch button {
		width: 60px !important;
		height: 60px !important;
		border-radius: 10px !important;
		border-color: #0073aa !important;
		border-width: thin !important;
		position: relative !important;
	}

	/* NOME SÓ EM FOTOGRAFIAS (background-image) */
	.single-product .cgkit-attribute-swatch button[style*="background-image"],
	.single-product .cgkit-attribute-swatch button[data-src],
	.single-product .cgkit-attribute-swatch img {
		position: relative !important;
	}

	.single-product .cgkit-attribute-swatch button[style*="background-image"]::after,
	.single-product .cgkit-attribute-swatch button[data-src]::after {
		content: attr(data-value) !important;
		position: absolute !important;
		bottom: -20px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		color: #333 !important;
		white-space: nowrap !important;
		z-index: 10 !important;
	}
	/* Container de swatches: end */




	.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-7002 a {
		color: #ffffff !important;
	}
	.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-7001 a {
		color: #ffffff !important;
	}
	.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-7092 a {
		color: #ffffff !important;
	}
	/* =======================================================
	   SHOPTIMIZER: LARGURA TOTAL + SIDEBAR ESQUERDA + STICKY
	   ======================================================= */

	/* 1. Reset de Contentor para Largura Total */
	/*
	body.archive.post-type-archive-product .col-full,
	body.archive.tax-product_cat .col-full {*/
	body.archive.post-type-archive-product .col-full,
	body.archive.tax-product_cat div.site-content div.shoptimizer-archive div.col-full{
		max-width: 95% !important; /*Margem de segurança nas bordas*/
		width: 95% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0 !important;
		
		display: flex !important;
		flex-flow: row wrap !important;
		gap: 40px !important;
		
	}
	
	body.page-template div.site-content div.shoptimizer-archive div.col-full{
		max-width: 95% !important; /*Margem de segurança nas bordas*/
		width: 95% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding: 0 !important;
		
		
	}


	/* 2. Área de Conteúdo (Produtos) */
	body.archive.post-type-archive-product #primary,
	body.archive.tax-product_cat #primary,
	.left-woocommerce-sidebar .content-area {
		float: none !important;
		flex: 1 !important; /* Ocupa o espaço restante */
		width: auto !important;
		order: 2 !important; /* Move para a direita da sidebar */
		margin-right: 0 !important;
	}

	/* 3. Sidebar (Widget Area) à Esquerda e Sticky */
	body.archive.post-type-archive-product #secondary,
	body.archive.tax-product_cat #secondary,
	.left-woocommerce-sidebar #secondary	{
		float: none !important;
		flex: 0 0 280px !important; /* Largura fixa da sidebar */
		width: 280px !important;
		order: 1 !important; /* Força a posição à esquerda */
		margin-left: 0 !important;
		
		/* Configuração Sticky */
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 160px !important; /* Ajusta conforme a altura do teu header */
		height: fit-content !important;
		align-self: flex-start !important;
		/*z-index: 10 !important; Removi para que o sub-menu aparecesse */
	}

	/* 4. Ajuste da Grid de Produtos */
	body.archive.post-type-archive-product ul.products,
	body.archive.tax-product_cat ul.products{
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
		gap: 60px !important;
		margin: 0 !important;
	}

	body.archive.post-type-archive-product ul.products li.product,
	body.archive.tax-product_cat ul.products li.product {
		width: 100% !important;
		margin: 20px 0px !important;
		float: none !important;
		width: 100% !important;
		min-height: 350px;
	}

	/* 5. Correção de Elementos que quebram o Sticky */
	#content {
		overflow: visible !important; /* Importante para o sticky funcionar */
		background-color: #f5f5f5 !important;
	}

	/* 6. Responsivo (Mobile e Tablets) */
	@media (max-width: 992px) {
		body.archive.post-type-archive-product .col-full,
		body.archive.tax-product_cat .col-full {
			flex-direction: column !important;
			width: 100% !important;
			padding: 0 15px !important;
		}

		body.archive.post-type-archive-product #secondary,
		body.archive.tax-product_cat #secondary {
			order: 2 !important; /* No mobile, a sidebar volta para baixo ou para cima */
			position: relative !important;
			top: 0 !important;
			width: 100% !important;
			flex: 1 1 auto !important;
		}

		body.archive.post-type-archive-product #primary,
		body.archive.tax-product_cat #primary {
			order: 1 !important;
			width: 100% !important;
		}
	}

	/* MENU ATRIBUTOS - Versão 1.1 */
	.wc-attr-menu {
		border: 1px slid #eee;
		padding: 15px;
		background: #fff;
		width: 100%; /* Ajuste para responsividade */
		max-width: 600px; /* Limite opcional */
		margin: 0 auto;
	}

	.wc-attr-title {
		font-size: 20px;
		font-weight: bold;
		margin-bottom: 30px;
		text-align: left;
		color: #333;
	}

	.wc-attr-block {
		margin-bottom: 15px;
	}

	.wc-attr-header {
		width: 100%;
		text-align: left;
		background: #eeeeee;
		border: none;
		padding: 10px 35px 10px 10px; /* Padding ajustado para o ícone */
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
		transition: background 0.2s;
		position: relative; /* Necessário para posicionar a seta */
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.main-navigation ul ul li {
		white-space: nowrap !important;
	}

	.shoptimizer-cart .cart-contents {
	  margin-top: -5px !important;
	}

	/* Seta indicadora */
	.wc-attr-header::after {
		content: '▼';
		font-size: 10px;
		position: absolute;
		right: 15px;
		transition: transform 0.3s ease;
	}

	.wc-attr-header:hover {
		background: #e9e9e9;
	}

	.wc-attr-header.active {
		background: #ddd;
	}

	/* Rotação da seta ao abrir */
	.wc-attr-header.active::after {
		transform: rotate(180deg);
	}

	.wc-attr-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease-out;
		background: #fafafa;
		padding: 0 10px;
	}

	.wc-attr-content ul {
		list-style: none;
		padding-left: 0;
		margin: 10px 0;
	}

	.wc-attr-content li {
		margin-bottom: 6px;
	}

	.wc-attr-content input[type="checkbox"] {
		margin-right: 6px;
		cursor: pointer;
	}

	.wc-attr-content label {
		cursor: pointer;
		display: flex;
		align-items: center;
	}
	/*PERSONALIZAÇÃO DO MENU DE ORDENAÇÃO*/
	/* Container do dropdown */
	.woocommerce-ordering {
		margin-bottom: 20px;
	}

	/* Select principal */
	.woocommerce-ordering select.orderby {
		padding: 12px 12px;
		border: 2px solid #ddd;
		border-radius: 6px;
		background: #fff;
		font-size: 16px;
		min-width: 200px;
		transition: all 0.3s ease;
	}
	/*MENU DE PAGINAÇÃO*/
	/* Container da paginação */
	.woocommerce-pagination {
		margin: 10px 0;
		text-align: center;
	}

	/* Links de página ativos */
	.woocommerce-pagination ul.page-numbers li a,
	.woocommerce-pagination ul.page-numbers li span.current {
		display: inline-block;
		padding: 10px 14px;
		margin: 0 4px;
		background: #f8f8f8;
		border: 2px solid #ddd;
		border-radius: 6px;
		color: #333;
		text-decoration: none;
		font-weight: 500;
		transition: all 0.3s ease;
	}

	/* Página atual */
	.woocommerce-pagination ul.page-numbers li span.current {
		background: #6ca2c8;
		color: #fff;
		border-color: #6ca2c8;
	}

	/* Hover */
	.woocommerce-pagination ul.page-numbers li a:hover {
		background: #6ca2c8;
		color: #fff;
		border-color: #6ca2c8;
		transform: translateY(-2px);
	}

	/* Info "Mostrando 1-12 de xx resultados" */
	.woocommerce-info {
		background: #6ca2c8;
		border: 1px solid #b3d4fc;
		border-radius: 8px;
		padding: 5px;
		margin-bottom: 5px;
		font-size: 14px;
	}
	/*CSS PREÇO DE VENDA*/
	/* Reduzir tamanho do símbolo € */
	.woocommerce-Price-currencySymbol {
		color: #0073aa !important;
	}
	.woocommerce-Price-amount.amount {
		font-weight: 800 !important;
		color: #0073aa !important;
		font-size: 1.2em !important;
	}
	div.shoptimizer-cart .woocommerce-Price-amount.amount, div.shoptimizer-cart .woocommerce-Price-currencySymbol {
		color: #ffffff !important;
	}
	.woocommerce ul.products li.product .woocommerce-Price-amount.amount {
		font-weight: 800;
		color: #0073aa;
	}

	/*Ficha do produto*/
	.product-details-wrapper{
		max-width: 100% !important;
	}
	.product .summary {
		width: 45% !important;
	}
	.product .images, .product .woocommerce-product-gallery {
		margin-left: 5% !important;
		width: 45% !important;
	}
	.cart .single_add_to_cart_button {
		width: 200px !important;
	}
	.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button.button-fluid {
		white-space: nowrap;
	}
	.woocommerce-tabs.wc-tabs-wrapper, .woocommerce-Tabs-panel{
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
	.woocommerce-tabs {
	  background-color: unset !important;;
	}
	div.call-back-feature img{
		width: 117px;
	}

	.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button.button-fluid {
	  padding: 0px !important;
		display:table;
		white-space: pre-wrap; /* css-3 */
		white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
		white-space: -pre-wrap; /* Opera 4-6 */
		white-space: -o-pre-wrap; /* Opera 7 */
		word-wrap: break-word; /* Internet Explorer 5.5+ */
		font-size: 12px;
		min-width: 100px;
		min-height: 60px;
		font-size: 14px;
		font-weight: bold;
	}



	/*.product_meta .posted_in, .product_meta .sku_wrapper, .product_meta .tagged_as {*/
	/*
	.product_meta .sku_wrapper {
	  display: block !important;
	  margin: 0 0px !important;
	  clear: both !important;
	}
	*/
	.woocommerce-tabs ul.tabs, table.woocommerce-product-attributes td {
	  text-align: left !important;
	 }
	.woocommerce-tabs ul.tabs li a{
		padding-left: 0px !important;
	}
	.woocommerce-tabs .tabs li a::after {
	  left: 0px !important;
	  width: calc(100% - 9px) !important;
	}
	div.product_meta, div.product_meta span.posted_in,
	div.product_meta span.tagged_as,
	div.woocommerce-product-details__short-description{
		display: none !important;
	}

	div.product_meta, .product_meta .sku_wrapper{
		display: block !important;
	}
	.product_meta {
	  width: 100% !important;
	  max-width: 100% !important;
	  position: relative !important;
	  left: 0 !important;
	  right: 0 !important;
	  margin-left: 0 !important;
	  margin-right: 0 !important;
	  text-align: center !important;
	}

	/*LIstagem dos produtos*/
	.columns-4 ul.products li.product, .cross-sells .columns-4 li.product, .related .columns-4 li.product, .upsells .columns-4 li.product {
		float: left;
		width: 20.97% !important;
		margin: 2% !important;
		min-height: 340px !important;
	}
	ul.products li.product:not(.product-category)::before, ul.products li.product:hover::before {
		box-shadow: 0 0 15px rgba(0,0,0,0.2) !important;
		border-radius: 20px !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	ul.products li.product:focus-within::before, ul.products li.product:hover::before {
	  box-shadow: 0 0 20px rgba(0,0,0,0.8) !important;
	}
	.woocommerce-card__header {
	  padding-top: 0 !important;
	}
	ul.products li.product .button {
	  margin-bottom: 10px !important;
	}
	p.product__categories{
		display: none !important;
	}
	.button, input[type=submit], ul.products li.product .button, .commercekit-wishlist-table button, .woocommerce #respond input#submit.alt, .product .cart .single_add_to_cart_button, .widget_shopping_cart a.button.checkout, .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.added_to_cart, .site div.wpforms-container-full .wpforms-form button[type=submit], ul.products li.product .added_to_cart, ul.wc-block-grid__products .wp-block-button__link, .woocommerce-cart p.return-to-shop a, .elementor-row .feature a, .image-feature figcaption span, .wp-element-button.wc-block-cart__submit-button, .wp-element-button.wc-block-components-button.wc-block-components-checkout-place-order-button{
		background-color: #082941 !important;
		opacity: 1 !important;
		border-radius: 25px !important;
	}
	.button:hover, [type="submit"]:hover, .commercekit-wishlist-table button:hover, ul.products li.product .button:hover, #place_order[type="submit"]:hover, body .woocommerce #respond input#submit.alt:hover, .product .cart .single_add_to_cart_button:hover, .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li a.added_to_cart:hover, .site div.wpforms-container-full .wpforms-form button[type=submit]:hover, .site div.wpforms-container-full .wpforms-form button[type=submit]:focus, ul.products li.product .added_to_cart:hover, ul.wc-block-grid__products .wp-block-button__link:hover, .widget_shopping_cart a.button.checkout:hover, .woocommerce-cart p.return-to-shop a:hover, .wp-element-button.wc-block-cart__submit-button:hover, .wp-element-button.wc-block-components-button.wc-block-components-checkout-place-order-button:hover{
		background-color: #6ca2c8 !important;
	}
	
	
	/* Mensagens */
	.woocommerce-error .button, .woocommerce-info .button, .woocommerce-message .button, .woocommerce-noreviews .button, p.no-comments .button {
		padding: 0.5em !important;
	}
	
	/* Carrinho de Compras */
	table.cart td.actions button {
	  color: #ffffff !important;
	}
	
	div.woocommerce-additional-fields{
		clear: both;
	}
	
	.price-iva-notice{
		display:block !important;
		font-size:12px !important;
		color:#777 !important;
		margin-top:3px !important;
		font-weight: 400 !important;
	}
	
	
	
	
	
	/*************************************************
	Favoritos
	**************************************************/
	ul.commercekit-wishlist-list.products li.product {
		width: 20% !important;
		margin-bottom: 5% !important;
		margin-right: 2% !important;
		min-height: 430px !important;
	  }

}



/* CSS Mobile */
@media (max-width: 992px) {
		/*
	  .menu-toggle .bar-text, .menu-toggle:hover .bar-text, .shoptimizer-cart a.cart-contents .count {
		color: #000 !important;
	  }
	  .menu-toggle .bar {
		background-color: #000 !important;
	  }
	  */
}