/* ========================================
   PÁGINA DE LOJA - VEDEL
   ======================================== */

.shop-main {
	background: #ffffff;
	padding: 3rem 0;
}

/* Container Principal */
.shop-container {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2.5rem;
	align-items: start;
}

/* ========================================
   BARRA LATERAL - FILTROS
   ======================================== */

.shop-sidebar {
	height: fit-content;
}

.sidebar-sticky {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Grupo de Filtro */
.filter-group {
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-border);
	border-radius: 12px;
	padding: 1.5rem;
	transition: all 0.3s ease;
}

.filter-group:hover {
	border-color: var(--vedel-accent);
	box-shadow: 0 4px 12px rgba(244, 190, 30, 0.05);
}

.filter-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 1.2rem 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--vedel-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-title span {
	flex: 1;
}

.filter-toggle {
	background: none;
	border: none;
	color: var(--vedel-primary);
	cursor: pointer;
	padding: 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.filter-toggle[aria-expanded="false"] {
	transform: rotate(-90deg);
}

.filter-toggle svg {
	stroke-width: 2.5;
}

/* Conteúdo do Filtro */
.filter-content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

/* ========================================
   FILTRO DE MARCAS
   ======================================== */

.brands-list {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.brand-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 0.65rem;
	padding: 0.5rem 0;
	transition: all 0.2s ease;
	position: relative;
}

.brand-checkbox:hover {
	padding-left: 0.3rem;
}

.brand-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.checkmark {
	width: 20px;
	height: 20px;
	border: 2px solid var(--vedel-border);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.brand-checkbox input[type="checkbox"]:checked ~ .checkmark {
	background: var(--vedel-primary);
	border-color: var(--vedel-primary);
	color: #ffffff;
}

.brand-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
	content: '✓';
	font-size: 0.75rem;
	font-weight: bold;
}

.brand-name {
	font-size: 0.9rem;
	color: var(--vedel-text);
	font-weight: 500;
	flex: 1;
}

.brand-count {
	font-size: 0.75rem;
	color: var(--vedel-muted);
	background: #f5f5f5;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.filter-empty {
	font-size: 0.85rem;
	color: var(--vedel-muted);
	margin: 0;
	font-style: italic;
}

/* ========================================
   FILTRO DE PREÇO
   ======================================== */

.price-slider-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Range Slider */
.price-slider {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: var(--vedel-border);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.price-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--vedel-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(14, 59, 132, 0.3);
}

.price-slider::-webkit-slider-thumb:hover {
	width: 22px;
	height: 22px;
	box-shadow: 0 4px 12px rgba(14, 59, 132, 0.4);
}

.price-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--vedel-primary);
	cursor: pointer;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(14, 59, 132, 0.3);
	transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb:hover {
	width: 22px;
	height: 22px;
	box-shadow: 0 4px 12px rgba(14, 59, 132, 0.4);
}

.price-display {
	display: flex;
	gap: 0.8rem;
	align-items: center;
}

.price-values {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: var(--vedel-text);
	font-weight: 600;
	background: #f9f9f9;
	padding: 0.7rem 0.9rem;
	border-radius: 8px;
	border: 1px solid var(--vedel-border);
}

.price-values span:nth-child(1),
.price-values span:nth-child(4) {
	font-size: 0.75rem;
	color: var(--vedel-muted);
}

/* Filtros Predefinidos */
.price-presets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--vedel-border);
}

.price-preset {
	padding: 0.6rem 0.8rem;
	background: #ffffff;
	border: 1px solid var(--vedel-border);
	border-radius: 6px;
	color: var(--vedel-text);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
}

.price-preset:hover {
	background: var(--vedel-accent);
	border-color: var(--vedel-accent);
	color: var(--vedel-primary);
	font-weight: 600;
}

/* ========================================
   FILTROS ATIVOS
   ======================================== */

.active-filters {
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-accent);
	border-radius: 12px;
	padding: 1.2rem;
}

.active-filters-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--vedel-primary);
	text-transform: uppercase;
	margin-bottom: 0.8rem;
	letter-spacing: 0.5px;
}

.active-filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
	min-height: 32px;
}

.active-filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--vedel-primary);
	color: #ffffff;
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
}

.active-filter-tag button {
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.active-filter-tag button:hover {
	opacity: 0.8;
}

.btn-clear-filters {
	width: 100%;
	padding: 0.7rem;
	background: #f5f5f5;
	border: 1px solid var(--vedel-border);
	border-radius: 6px;
	color: var(--vedel-text);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-clear-filters:hover {
	background: #efefef;
	border-color: var(--vedel-text);
}

/* ========================================
   ÁREA PRINCIPAL DE PRODUTOS
   ======================================== */

.shop-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Header da Loja */
.shop-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--vedel-border);
}

.shop-header-left {
	flex: 1;
}

.page-title {
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	font-weight: 700;
	color: var(--vedel-primary);
}

.products-count {
	margin: 0;
	font-size: 0.95rem;
	color: var(--vedel-muted);
}

.shop-header-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Controles da Loja */
.shop-controls {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.orderby {
	padding: 0.6rem 1rem;
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-border);
	border-radius: 6px;
	color: var(--vedel-text);
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.orderby:hover,
.orderby:focus {
	border-color: var(--vedel-primary);
	background: #ffffff;
}

/* Opções de Visualização */
.view-options {
	display: flex;
	gap: 0.4rem;
	background: var(--vedel-surface);
	padding: 0.3rem;
	border: 1px solid var(--vedel-border);
	border-radius: 6px;
}

.view-btn {
	padding: 0.5rem 0.8rem;
	background: transparent;
	border: none;
	color: var(--vedel-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 4px;
}

.view-btn:hover,
.view-btn.active {
	background: var(--vedel-primary);
	color: #ffffff;
}

/* ========================================
   GRID DE PRODUTOS
   ======================================== */

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.products-list {
	grid-template-columns: 1fr;
}

.products-list .product {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 1.5rem;
	padding: 1.5rem;
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-border);
	border-radius: 8px;
	align-items: start;
}

.product {
	background: #ffffff;
	border: 1px solid var(--vedel-border);
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.product:hover {
	border-color: var(--vedel-accent);
	box-shadow: 0 8px 24px rgba(14, 59, 132, 0.12);
	transform: translateY(-4px);
}

.product-image-wrapper {
	width: 100%;
	padding-bottom: 100%;
	position: relative;
	overflow: hidden;
	background: var(--vedel-surface);
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product:hover .product-image-wrapper img {
	transform: scale(1.08);
}

.product-badge {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	background: var(--vedel-accent);
	color: var(--vedel-text);
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 10;
}

.product-content {
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	flex: 1;
}

.product-category {
	font-size: 0.75rem;
	color: var(--vedel-accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--vedel-text);
	margin: 0;
	line-height: 1.4;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.product-title a:hover {
	color: var(--vedel-primary);
}

.product-rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--vedel-muted);
}

.star-rating {
	color: var(--vedel-accent);
}

.product-price {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0.4rem 0 0 0;
}

.product-price-original {
	text-decoration: line-through;
	font-size: 0.85rem;
	color: var(--vedel-muted);
}

.product-price-current {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--vedel-primary);
}

.product-actions {
	display: flex;
	gap: 0.6rem;
	margin-top: auto;
}

.btn-add-to-cart,
.btn-wishlist {
	flex: 1;
	padding: 0.7rem 0.8rem;
	border: none;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-add-to-cart {
	background: var(--vedel-primary);
	color: #ffffff;
}

.btn-add-to-cart:hover {
	background: var(--vedel-primary-dark);
	box-shadow: 0 4px 12px rgba(14, 59, 132, 0.3);
}

.btn-wishlist {
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-border);
	color: var(--vedel-primary);
	flex: 0 0 auto;
	width: 44px;
	padding: 0.7rem;
}

.btn-wishlist:hover {
	background: var(--vedel-accent);
	border-color: var(--vedel-accent);
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 1024px) {
	.shop-container {
		grid-template-columns: 240px 1fr;
		gap: 2rem;
	}

	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 1.2rem;
	}
}

@media (max-width: 768px) {
	.shop-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.shop-sidebar {
		position: sticky;
		top: 0;
		z-index: 100;
		background: #ffffff;
		padding: 0 0 1rem 0;
	}

	.sidebar-sticky {
		position: static;
		flex-direction: row;
		gap: 0.8rem;
		overflow-x: auto;
		padding-bottom: 0.5rem;
	}

	.filter-group {
		flex: 0 0 auto;
		width: 280px;
		min-width: 280px;
	}

	.active-filters {
		display: none;
	}

	.shop-header {
		flex-direction: column;
		align-items: stretch;
	}

	.shop-header-right {
		justify-content: flex-start;
	}

	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 1rem;
	}

	.products-list {
		grid-template-columns: 1fr;
	}

	.products-list .product {
		grid-template-columns: 1fr;
	}

	.page-title {
		font-size: 1.5rem;
	}

	.filter-title {
		font-size: 0.85rem;
	}

	.product-content {
		padding: 0.9rem;
	}

	.product-title {
		font-size: 0.85rem;
	}

	.product-price-current {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.8rem;
	}

	.page-title {
		font-size: 1.3rem;
		margin-bottom: 0.3rem;
	}

	.products-count {
		font-size: 0.85rem;
	}

	.product {
		border-radius: 8px;
	}

	.product-content {
		padding: 0.8rem;
		gap: 0.6rem;
	}

	.product-title {
		font-size: 0.8rem;
		min-height: auto;
		-webkit-line-clamp: 1;
	}

	.product-actions {
		gap: 0.4rem;
	}

	.btn-add-to-cart,
	.btn-wishlist {
		padding: 0.6rem 0.5rem;
		font-size: 0.8rem;
	}
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn-filter-apply {
	background: var(--vedel-accent);
	color: var(--vedel-primary);
	padding: 0.6rem 1.2rem;
	font-size: 0.85rem;
}

.btn-filter-apply:hover {
	background: #f0b81a;
	box-shadow: 0 4px 12px rgba(244, 190, 30, 0.3);
}

/* Breadcrumb */
.woocommerce-breadcrumb {
	font-size: 0.85rem;
	color: var(--vedel-muted);
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--vedel-border);
}

.woocommerce-breadcrumb a {
	color: var(--vedel-primary);
	font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
	color: var(--vedel-primary-dark);
	text-decoration: underline;
}

/* Paginação */
.woocommerce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--vedel-border);
}

.page-numbers {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.page-numbers li a,
.page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.6rem;
	background: var(--vedel-surface);
	border: 1px solid var(--vedel-border);
	border-radius: 6px;
	color: var(--vedel-text);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.page-numbers li a:hover {
	background: var(--vedel-primary);
	color: #ffffff;
	border-color: var(--vedel-primary);
}

.page-numbers li .current {
	background: var(--vedel-primary);
	color: #ffffff;
	border-color: var(--vedel-primary);
	font-weight: 700;
}

.page-numbers .prev,
.page-numbers .next {
	font-weight: 600;
}
