/* LF Loja Completa - estilos independentes (não depende de outros plugins) */

.lflc-shop {
	--lflc-dark: #1C1C1C;
	--lflc-yellow: #FED700;
	margin: 24px 0;
}

/* ===== Layout: sidebar + conteúdo ===== */

.lflc-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: start;
}

.lflc-sidebar {
	position: sticky;
	top: 20px;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 20px;
	box-sizing: border-box;
}

.lflc-mobile-toggle {
	display: none;
	margin-bottom: 20px;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 4px 20px;
	box-sizing: border-box;
}

.lflc-mobile-toggle summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 0;
	font-weight: 700;
	color: var(--lflc-dark);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lflc-mobile-toggle summary::-webkit-details-marker {
	display: none;
}

.lflc-mobile-toggle summary::after {
	content: "+";
	font-size: 20px;
	line-height: 1;
	color: var(--lflc-yellow);
}

.lflc-mobile-toggle[open] summary::after {
	content: "\2212";
}

.lflc-mobile-toggle .lflc-sidebar-inner {
	padding-bottom: 16px;
}

.lflc-main {
	min-height: 200px;
	position: relative;
}

@media (max-width: 900px) {
	.lflc-layout {
		grid-template-columns: 1fr;
	}

	.lflc-sidebar {
		display: none;
	}

	.lflc-mobile-toggle {
		display: block;
	}
}

/* ===== Busca ===== */

.lflc-search {
	position: relative;
	margin-bottom: 20px;
}

.lflc-search-input {
	width: 100%;
	padding: 11px 44px 11px 14px;
	border-radius: 999px;
	border: 1px solid #e0e0e0;
	background: #f7f7f7;
	font-size: 13.5px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.lflc-search-input:focus {
	border-color: var(--lflc-yellow);
}

.lflc-search button {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--lflc-dark);
	color: var(--lflc-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease;
}

.lflc-search button:hover {
	background: #000000;
}

.lflc-search button svg {
	width: 15px;
	height: 15px;
}

/* ===== Lista de categorias ===== */

.lflc-cat-title {
	display: inline-block;
	position: relative;
	margin: 0 0 16px;
	padding-bottom: 8px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--lflc-dark);
}

.lflc-cat-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--lflc-yellow);
}

.lflc-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lflc-cat-link {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	text-align: left;
	background: transparent;
	border: none;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 13.5px;
	color: #444;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lflc-cat-link:hover {
	background: #f5f5f5;
	color: var(--lflc-dark);
}

.lflc-cat-link.is-active {
	background: var(--lflc-dark);
	color: var(--lflc-yellow);
	font-weight: 700;
}

.lflc-cat-count {
	font-size: 11.5px;
	opacity: 0.7;
}

/* ===== Grid de produtos ===== */

.lflc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.lflc-cols-1 { grid-template-columns: repeat(1, 1fr); }
.lflc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lflc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lflc-cols-4 { grid-template-columns: repeat(4, 1fr); }
.lflc-cols-5 { grid-template-columns: repeat(5, 1fr); }
.lflc-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) {
	.lflc-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 700px) {
	.lflc-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
	.lflc-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

/* ===== Card de produto ===== */

.lflc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lflc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.lflc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: #ff4757;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
}

.lflc-card-image-link {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f7;
}

.lflc-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.lflc-card:hover .lflc-card-image {
	transform: scale(1.06);
}

.lflc-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

.lflc-card-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.lflc-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.lflc-card-title a:hover {
	color: #6b5900;
}

.lflc-card-price {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.lflc-card-price del {
	font-weight: 400;
	color: #999;
	margin-right: 6px;
}

.lflc-card-price ins {
	text-decoration: none;
	color: #e84118;
}

.lflc-card-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
}

.lflc-btn {
	flex: 1;
	min-width: 110px;
	text-align: center;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lflc-btn-cart {
	background: var(--lflc-dark, #1C1C1C);
	color: #fff;
}

.lflc-btn-cart:hover {
	background: #000000;
}

.lflc-btn-cart.lflc-loading {
	opacity: 0.7;
	cursor: wait;
}

.lflc-btn-cart.lflc-added {
	background: #00b894;
}

.lflc-btn-outline {
	background: #1C1C1C;
	color: #ffffff;
	border: 1.5px solid #1C1C1C;
}

.lflc-btn-outline:hover {
	background: #FED700;
	color: #000000;
	border-color: #FED700;
}

.lflc-btn-disabled {
	flex: 1;
	min-width: 110px;
	text-align: center;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	background: #eee;
	color: #999;
	cursor: not-allowed;
}

/* ===== Loading + paginação ===== */

.lflc-main.lflc-is-loading .lflc-grid-products {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.lflc-loading {
	display: none;
	position: absolute;
	top: 40%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border-radius: 50%;
	border: 3px solid #e4e4e7;
	border-top-color: #FED700;
	animation: lflc-spin 0.7s linear infinite;
	z-index: 4;
}

.lflc-main.lflc-is-loading .lflc-loading {
	display: block;
}

@keyframes lflc-spin {
	to { transform: rotate(360deg); }
}

.lflc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 28px;
}

.lflc-page-numbers {
	display: flex;
	align-items: center;
	gap: 4px;
}

.lflc-page-btn {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1.5px solid #e4e4e7;
	background: #ffffff;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lflc-page-btn:hover:not(:disabled) {
	border-color: #FED700;
	color: #6b5900;
}

.lflc-page-btn.is-current {
	background: #1C1C1C;
	border-color: #1C1C1C;
	color: #fff;
	cursor: default;
}

.lflc-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.lflc-page-dots {
	padding: 0 4px;
	color: #999;
}
