/**
 * CSS Variables - Definições de cores e tamanhos
 */
:root {
    --color-primary: #3A68BB;
    --color-secondary: #1a1a2e;
    --color-white: #ffffff;
    --color-background: #f5f7fa;
    --color-error: #e74c3c;
    --color-highlight: #2d5aa8;
    --color-success: #27ae60;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
}
/**
 * Custom Modern Header Styles
 */

/* ========================================
   HEADER PRINCIPAL
======================================== */
.custom-modern-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: var(--color-white);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.custom-modern-header.scrolled {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.custom-header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 15px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

/* Logo */
.custom-header-logo {
	flex-shrink: 0;
}

.custom-header-logo a {
	display: block;
	line-height: 0;
}

.custom-header-logo img {
	height: 50px;
	width: auto;
	transition: transform 0.3s ease;
}

.custom-header-logo a:hover img {
	transform: scale(1.05);
}

/* Desktop Navigation */
.custom-header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.custom-nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px;
}

.custom-nav-menu li {
	position: relative;
}

.custom-nav-menu a {
	display: block;
	padding: 12px 20px;
	color: var(--color-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
}

.custom-nav-menu a:hover,
.custom-nav-menu a:focus {
	color: var(--color-primary);
	background: rgba(58, 104, 187, 0.08);
}

.custom-nav-menu li.current-menu-item > a {
	color: var(--color-primary);
	background: rgba(58, 104, 187, 0.1);
}

/* Submenu */
.custom-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-white);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 8px;
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.custom-nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.custom-nav-menu .sub-menu li {
	display: block;
}

.custom-nav-menu .sub-menu a {
	padding: 10px 16px;
	font-size: 14px;
}

/* Header Actions */
.custom-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.custom-header-icon {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--color-secondary);
	cursor: pointer;
	transition: all 0.3s ease;
}

.custom-header-icon:hover {
	background: rgba(58, 104, 187, 0.1);
	color: var(--color-primary);
	transform: scale(1.1);
}

.custom-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	background: var(--color-error);
	color: var(--color-white);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

/* Search Bar */
.custom-search-bar {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: var(--color-background);
	border-top: 1px solid #e0e0e0;
}

.custom-search-bar.active {
	max-height: 100px;
}

.custom-search-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 30px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.custom-search-form {
	flex: 1;
	position: relative;
}

.custom-search-input {
	width: 100%;
	padding: 14px 50px 14px 20px;
	border: 2px solid #ddd;
	border-radius: 50px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.custom-search-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(58, 104, 187, 0.1);
}

.custom-search-submit {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--color-primary);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	cursor: pointer;
	transition: all 0.3s ease;
}

.custom-search-submit:hover {
	background: var(--color-highlight);
	transform: translateY(-50%) scale(1.1);
}

.custom-search-close {
	background: transparent;
	border: none;
	color: var(--color-secondary);
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.custom-search-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
}

/* ========================================
   MINI CART SIDEBAR
======================================== */
.custom-mini-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	pointer-events: none;
}

.custom-mini-cart-sidebar.active {
	pointer-events: all;
}

.custom-mini-cart-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(2px);
}

.custom-mini-cart-sidebar.active .custom-mini-cart-overlay {
	opacity: 1;
}

.custom-mini-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 420px;
	height: 100%;
	background: var(--color-white);
	box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}

.custom-mini-cart-sidebar.active .custom-mini-cart-panel {
	transform: translateX(0);
}

.custom-mini-cart-header {
	padding: 24px 30px;
	border-bottom: 2px solid var(--color-background);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.custom-mini-cart-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--color-secondary);
}

.custom-mini-cart-close {
	background: transparent;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-secondary);
	cursor: pointer;
	transition: all 0.3s ease;
}

.custom-mini-cart-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
}

.custom-mini-cart-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px 30px;
}

/* Estilização do WooCommerce Mini Cart */
.custom-mini-cart-content .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-mini-cart-content .woocommerce-mini-cart-item {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-background);
}

.custom-mini-cart-content .woocommerce-mini-cart-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
}

.custom-mini-cart-content .woocommerce-mini-cart-item a:not(.remove) {
	flex: 1;
	text-decoration: none;
	color: var(--color-secondary);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
}

.custom-mini-cart-content .woocommerce-mini-cart-item a:not(.remove):hover {
	color: var(--color-primary);
}

.custom-mini-cart-content .remove {
	color: var(--color-error) !important;
	font-size: 24px !important;
	text-decoration: none !important;
	line-height: 1 !important;
	font-weight: 400 !important;
}

.custom-mini-cart-content .woocommerce-mini-cart__total {
	padding: 20px 0;
	border-top: 2px solid var(--color-background);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	font-weight: 700;
}

.custom-mini-cart-content .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.custom-mini-cart-content .button {
	display: block;
	text-align: center;
	padding: 16px;
	border-radius: 50px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
}

.custom-mini-cart-content .button.checkout {
	background: var(--color-primary);
	color: var(--color-white);
}

.custom-mini-cart-content .button.checkout:hover {
	background: var(--color-highlight);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(58, 104, 187, 0.3);
}

.custom-mini-cart-content .wc-forward {
	background: var(--color-background);
	color: var(--color-secondary);
}

.custom-mini-cart-content .wc-forward:hover {
	background: #e0e0e0;
}

/* ========================================
   MEGA MENU SIDEBAR
======================================== */
.custom-mega-menu-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: 10001;
	pointer-events: none;
}

.custom-mega-menu-sidebar.active {
	pointer-events: all;
}

.custom-mega-menu-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(2px);
}

.custom-mega-menu-sidebar.active .custom-mega-menu-overlay {
	opacity: 1;
}

.custom-mega-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 480px;
	height: 100%;
	background: var(--color-white);
	box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}

.custom-mega-menu-sidebar.active .custom-mega-menu-panel {
	transform: translateX(0);
}

.custom-mega-menu-header {
	padding: 24px 30px;
	border-bottom: 2px solid var(--color-background);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.custom-mega-menu-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--color-secondary);
}

.custom-mega-menu-close {
	background: transparent;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-secondary);
	cursor: pointer;
	transition: all 0.3s ease;
}

.custom-mega-menu-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
}

.custom-mega-menu-content {
	flex: 1;
	overflow-y: auto;
	padding: 30px;
}

.custom-mega-menu-content > div {
	margin-bottom: 40px;
}

.custom-mega-menu-content h4 {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--color-primary);
	margin: 0 0 16px 0;
}

/* Mega Menu Navigation */
.custom-mega-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-mega-nav-list li {
	margin-bottom: 4px;
}

.custom-mega-nav-list a {
	display: block;
	padding: 12px 16px;
	color: var(--color-secondary);
	text-decoration: none;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.custom-mega-nav-list a:hover {
	background: rgba(58, 104, 187, 0.08);
	color: var(--color-primary);
	transform: translateX(4px);
}

/* Mega Products Grid */
.custom-mega-products-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.custom-mega-product-card {
	display: flex;
	gap: 16px;
	padding: 12px;
	background: var(--color-background);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.custom-mega-product-card:hover {
	background: var(--color-white);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.custom-mega-product-image {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--color-white);
}

.custom-mega-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.custom-mega-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.custom-mega-product-info h5 {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-secondary);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.custom-mega-product-price {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary);
}

/* Quick Links */
.custom-mega-quick-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-mega-quick-links li {
	margin-bottom: 4px;
}

.custom-mega-quick-links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: var(--color-secondary);
	text-decoration: none;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.custom-mega-quick-links a:hover {
	background: rgba(58, 104, 187, 0.08);
	color: var(--color-primary);
	transform: translateX(4px);
}

.custom-mega-quick-links svg {
	flex-shrink: 0;
}

/* ========================================
   RESPONSIVIDADE
======================================== */
@media (max-width: 1024px) {
	.custom-header-nav.desktop-only {
		display: none;
	}
	
	.custom-header-container {
		padding: 12px 20px;
	}
	
	.custom-header-logo img {
		height: 40px;
	}
	
	.custom-mega-menu-panel,
	.custom-mini-cart-panel {
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.custom-header-actions {
		gap: 8px;
	}
	
	.custom-header-icon {
		width: 40px;
		height: 40px;
	}
	
	.custom-search-container {
		padding: 16px 20px;
	}
	
	.custom-mini-cart-header,
	.custom-mega-menu-header {
		padding: 20px;
	}
	
	.custom-mini-cart-content,
	.custom-mega-menu-content {
		padding: 20px;
	}
}

/* ========================================
   CORREÇÕES E MELHORIAS - Nov 2025
======================================== */

/* Ícones maiores no header */
.custom-header-icon svg {
    width: 26px !important;
    height: 26px !important;
}

/* Desktop - ícones ainda maiores */
@media (min-width: 768px) {
    .custom-header-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .custom-header-icon {
        width: 48px;
        height: 48px;
    }
}

/* Mini Cart Sidebar - Correções */
.custom-mini-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
}

.custom-mini-cart-sidebar.active {
    pointer-events: auto;
    visibility: visible;
}

.custom-mini-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-mini-cart-sidebar.active .custom-mini-cart-overlay {
    opacity: 1;
}

.custom-mini-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #ffffff !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-mini-cart-sidebar.active .custom-mini-cart-panel {
    transform: translateX(0);
}

.custom-mini-cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    flex-shrink: 0;
}

.custom-mini-cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.custom-mini-cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f7fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-mini-cart-close:hover {
    background: #e74c3c;
    color: white;
}

.custom-mini-cart-close svg {
    width: 20px;
    height: 20px;
}

.custom-mini-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
}

/* Custom Cart Items */
.custom-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.custom-cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
}

.custom-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-cart-item-details {
    flex: 1;
}

.custom-cart-item-name {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.custom-cart-item-name:hover {
    color: #3A68BB;
}

.custom-cart-item-quantity {
    font-size: 14px;
    color: #666;
}

.custom-cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee;
    color: #e74c3c !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.custom-cart-item-remove:hover {
    background: #e74c3c;
    color: white !important;
}

/* Empty Cart */
.custom-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.custom-empty-cart svg {
    margin-bottom: 24px;
    opacity: 0.5;
}

.custom-empty-cart h4 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.custom-empty-cart p {
    color: #666;
    margin: 0 0 24px;
}

.custom-empty-cart-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #3A68BB;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-empty-cart-btn:hover {
    background: #2d5aa8;
    transform: translateY(-2px);
}

/* Cart Total */
.custom-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 16px;
}

.custom-cart-total-label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
}

.custom-cart-total-amount {
    font-weight: 700;
    color: #3A68BB;
    font-size: 20px;
}

/* Cart Buttons */
.custom-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}

.custom-cart-btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-cart-btn.view-cart {
    background: #f5f7fa;
    color: #1a1a2e;
    border: 2px solid #e0e0e0;
}

.custom-cart-btn.view-cart:hover {
    background: #e8ecf0;
}

.custom-cart-btn.checkout {
    background: #3A68BB;
    color: white;
}

.custom-cart-btn.checkout:hover {
    background: #2d5aa8;
    transform: translateY(-2px);
}

/* Mobile - ícones ajustados */
@media (max-width: 767px) {
    .custom-header-container {
        padding: 12px 16px;
    }
    
    .custom-header-logo img {
        height: 40px;
    }
    
    .custom-header-icon {
        width: 42px;
        height: 42px;
    }
    
    .custom-header-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .custom-header-actions {
        gap: 8px;
    }
    
    .custom-mini-cart-panel {
        max-width: 100%;
    }
}

/* ========================================
   ÍCONES MAIORES - Lupa, Carrinho, Menu
======================================== */

/* Lupa */
.custom-search-toggle svg {
    width: 26px !important;
    height: 26px !important;
}

/* Carrinho */
.custom-cart-toggle svg {
    width: 28px !important;
    height: 28px !important;
}

/* Menu Hamburguer */
.custom-mega-menu-toggle svg {
    width: 28px !important;
    height: 28px !important;
}

/* Desktop - ainda maiores */
@media (min-width: 768px) {
    .custom-search-toggle svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .custom-cart-toggle svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .custom-mega-menu-toggle svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    /* Área clicável maior */
    .custom-search-toggle,
    .custom-cart-toggle,
    .custom-mega-menu-toggle {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-search-toggle svg,
    .custom-cart-toggle svg,
    .custom-mega-menu-toggle svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .custom-search-toggle,
    .custom-cart-toggle,
    .custom-mega-menu-toggle {
        width: 44px !important;
        height: 44px !important;
    }
}

/* ========================================
   ÍCONES PROPORCIONAIS - TODOS IGUAIS
======================================== */

/* Reset - Todos os ícones do header com mesmo tamanho */
.custom-header-actions .custom-header-icon svg {
    width: 24px !important;
    height: 24px !important;
}

/* Todos os botões com mesmo tamanho */
.custom-header-actions .custom-header-icon {
    width: 44px !important;
    height: 44px !important;
}

/* Desktop */
@media (min-width: 768px) {
    .custom-header-actions .custom-header-icon svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .custom-header-actions .custom-header-icon {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-header-actions .custom-header-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .custom-header-actions .custom-header-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ========================================
   ÍCONES MAIORES - Pesquisa, Carrinho, Menu
   + BOTÕES FECHAR ESTILIZADOS
======================================== */

/* Pesquisa, Carrinho e Menu - maiores que conta */
.custom-search-toggle svg,
.custom-cart-toggle svg,
.custom-mega-menu-toggle svg {
    width: 28px !important;
    height: 28px !important;
}

/* Desktop - ainda maiores */
@media (min-width: 768px) {
    .custom-search-toggle svg,
    .custom-cart-toggle svg,
    .custom-mega-menu-toggle svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-search-toggle svg,
    .custom-cart-toggle svg,
    .custom-mega-menu-toggle svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* ========================================
   BOTÕES FECHAR - Mini Cart e Mega Menu
======================================== */

/* Botão fechar do Mini Cart */
.custom-mini-cart-close {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 2px solid #e0e0e0 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.custom-mini-cart-close svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
}

.custom-mini-cart-close:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

.custom-mini-cart-close:hover svg {
    stroke: white !important;
}

/* Botão fechar do Mega Menu */
.custom-mega-menu-close,
.mega-menu-close,
[class*="mega-menu"] .close,
[class*="mega-menu"] button[class*="close"] {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    border: 2px solid #e0e0e0 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    position: relative !important;
}

.custom-mega-menu-close svg,
.mega-menu-close svg,
[class*="mega-menu"] .close svg,
[class*="mega-menu"] button[class*="close"] svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
}

.custom-mega-menu-close:hover,
.mega-menu-close:hover,
[class*="mega-menu"] .close:hover,
[class*="mega-menu"] button[class*="close"]:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

.custom-mega-menu-close:hover svg,
.mega-menu-close:hover svg {
    stroke: white !important;
}

/* Botão fechar da busca */
.custom-search-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #e0e0e0 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.custom-search-close svg {
    width: 20px !important;
    height: 20px !important;
}

.custom-search-close:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}

.custom-search-close:hover svg {
    stroke: white !important;
}

/* ========================================
   OVERRIDE FINAL - ÍCONES DO HEADER
   Prioridade máxima com seletores específicos
======================================== */

/* TODOS os ícones - base */
.custom-modern-header .custom-header-actions .custom-header-icon svg,
.custom-modern-header .custom-header-actions button svg,
.custom-modern-header .custom-header-actions a svg,
header .custom-header-actions svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

/* Área clicável dos ícones */
.custom-modern-header .custom-header-actions .custom-header-icon,
.custom-modern-header .custom-header-actions button,
header .custom-header-actions .custom-header-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile - AINDA GRANDE */
@media screen and (max-width: 767px) {
    .custom-modern-header .custom-header-actions .custom-header-icon svg,
    .custom-modern-header .custom-header-actions button svg,
    .custom-modern-header .custom-header-actions a svg,
    header .custom-header-actions svg {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }
    
    .custom-modern-header .custom-header-actions .custom-header-icon,
    .custom-modern-header .custom-header-actions button,
    header .custom-header-actions .custom-header-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}
