/* ==========================================================================
   Clube SMK — Loja (arquivo, card de produto, filtros, quick view)
   ========================================================================== */

.csmk-shop { padding-block: var(--s-6) var(--s-16); }

/* ===== Hero da loja ===== */
.csmk-shop__hero { margin-bottom: var(--s-8); }
.csmk-shop__heading { font-size: var(--fs-40); line-height: var(--lh-tight); }
.csmk-shop__desc { margin-top: var(--s-3); max-width: 70ch; }

/* ===== Layout: sidebar + main ===== */
.csmk-shop__layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: var(--s-10);
	align-items: start;
}
@media (max-width: 1024px) { .csmk-shop__layout { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Sidebar (drawer no mobile, coluna no desktop) */
@media (min-width: 1025px) {
	.csmk-shop__aside.csmk-drawer {
		position: sticky;
		top: var(--sticky-offset);
		z-index: 1;
		visibility: visible;
		pointer-events: auto;
	}
	.csmk-shop__aside .csmk-drawer__backdrop { display: none; }
	.csmk-shop__aside .csmk-drawer__panel {
		position: static; transform: none; width: auto;
		box-shadow: none; background: transparent;
		max-height: calc(100vh - var(--sticky-offset) - var(--s-4));
		overflow-y: auto;
	}
	.csmk-shop__aside-head { display: none; }
	.csmk-shop__filter-toggle { display: none; }
}

/* ===== Toolbar ===== */
.csmk-shop__toolbar {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	margin-bottom: var(--s-6);
	flex-wrap: wrap;
}
.csmk-result-count { color: var(--text-soft); font-size: var(--fs-14); margin: 0; }
.csmk-orderby { margin-left: auto; }
.csmk-orderby select { min-width: 220px; padding-block: 0.65rem; }
@media (max-width: 1024px) {
	.csmk-shop__filter-toggle { margin-right: auto; }
	.csmk-orderby { margin-left: 0; flex: 1; }
	.csmk-orderby select { width: 100%; min-width: 0; }
	.csmk-result-count { flex-basis: 100%; order: 3; }
}

/* ===== Filtros ===== */
.csmk-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.csmk-filters__title { font-size: var(--fs-18); display: inline-flex; align-items: center; gap: var(--s-2); }
.csmk-filters__clear { font-size: var(--fs-13); color: var(--c-purple); font-weight: var(--fw-semi); }
.csmk-filters__clear:hover { text-decoration: underline; }
.csmk-filters__group { padding-block: var(--s-5); border-top: 1px solid var(--border); }
.csmk-filters__group:first-of-type { border-top: none; padding-top: 0; }
.csmk-filters__legend { font-size: var(--fs-14); font-weight: var(--fw-bold); margin-bottom: var(--s-4); text-transform: uppercase; letter-spacing: 0.04em; }
.csmk-filters__cats { display: flex; flex-direction: column; gap: var(--s-1); max-height: 280px; overflow-y: auto; }
.csmk-filters__cats .csmk-check { justify-content: flex-start; padding: var(--s-2) 0; width: 100%; }
.csmk-filters__cats .csmk-check > span:first-of-type { flex: 1; }
.csmk-filters__count { color: var(--text-faint); font-size: var(--fs-12); }

/* Slider de preço */
.csmk-price__slider { position: relative; height: 38px; display: flex; align-items: center; }
.csmk-price__track { position: absolute; left: 0; right: 0; height: 5px; background: var(--bg-muted); border-radius: var(--r-pill); }
.csmk-price__fill { position: absolute; top: 0; bottom: 0; background: var(--c-purple); border-radius: var(--r-pill); }
.csmk-price__slider input[type="range"] {
	position: absolute; left: 0; right: 0; width: 100%;
	-webkit-appearance: none; appearance: none;
	background: none; pointer-events: none; margin: 0; padding: 0; height: 5px;
}
.csmk-price__slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 3px solid var(--c-purple);
	box-shadow: var(--sh-1); cursor: pointer; pointer-events: auto;
}
.csmk-price__slider input[type="range"]::-moz-range-thumb {
	width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 3px solid var(--c-purple);
	cursor: pointer; pointer-events: auto;
}
.csmk-price__inputs { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-4) 0; }
.csmk-price__input { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 var(--s-2); flex: 1; }
.csmk-price__input span { color: var(--text-faint); font-size: var(--fs-13); }
.csmk-price__input input { border: none; padding: 0.6rem 0; width: 100%; }
.csmk-price__input input:focus { box-shadow: none; }
.csmk-price__sep { color: var(--text-faint); }

/* (Estilos do card de produto agora são globais — ver components.css) */

/* ===== Paginação ===== */
.csmk-pagination { margin-top: var(--s-10); display: flex; justify-content: center; }
.csmk-pagination ul { display: inline-flex; gap: var(--s-1); list-style: none; }
.csmk-pagination ul li a, .csmk-pagination ul li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 var(--s-2);
	border-radius: var(--r-sm);
	font-weight: var(--fw-semi); font-size: var(--fs-14);
	color: var(--text); border: 1px solid var(--border);
}
.csmk-pagination ul li a:hover { border-color: var(--c-purple); color: var(--c-purple); }
.csmk-pagination ul li span.current { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.csmk-pagination ul li span.dots { border: none; }

/* ===== Loading do grid ===== */
.csmk-shop__results { position: relative; transition: opacity var(--t) var(--ease); }
.csmk-shop__loading { display: flex; justify-content: center; padding: var(--s-8); }

/* (Estado vazio e Quick View agora são globais — ver components.css) */

/* ===== Cards de resultado (busca) ===== */
.csmk-result-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.csmk-result-card__media { aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.csmk-result-card__media img { width: 100%; height: 100%; object-fit: cover; }
.csmk-result-card__body { padding: var(--s-4); }
.csmk-result-card__title { font-size: var(--fs-15, 0.95rem); font-weight: var(--fw-med); margin-bottom: var(--s-2); }
.csmk-result-card__title a { color: var(--text); }
.csmk-result-card__title a:hover { color: var(--c-purple); }
.csmk-result-card__price { font-weight: var(--fw-bold); color: var(--c-purple); }
