/* Shop archive: category strip, sidebar filters, toolbar, grid/list views. */

/* ---------- Black category strip (design) ---------- */
.lv-cat-strip { background: var(--lv-text); color: #fff; }
.lv-cat-strip__inner {
	display: flex;
	justify-content: center;
	gap: clamp(12px, 3vw, 48px);
	overflow-x: auto;
	scrollbar-width: none;
}
.lv-cat-strip__inner::-webkit-scrollbar { display: none; }
.lv-cat-strip__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 8px;
	color: #fff;
	white-space: nowrap;
	transition: opacity var(--lv-transition);
	flex-shrink: 0;
}
.lv-cat-strip__item:hover { opacity: .75; }
.lv-cat-strip__item:hover, .lv-cat-strip__item.is-active { background: rgb(255 255 255 / .12); }
.lv-cat-strip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #fff;
	flex-shrink: 0;
}
.lv-cat-strip__icon svg { width: 30px; height: 30px; }
.lv-cat-strip__text { display: grid; line-height: 1.3; }
.lv-cat-strip__text strong { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lv-cat-strip__text small { font-size: 11px; opacity: .7; }

/* Scroll arrows — shown only when the strip overflows (toggled by shop.js). */
.lv-cat-strip { position: relative; }
.lv-cat-strip__arrow {
	position: absolute; top: 0; bottom: 0; z-index: 3;
	display: none; align-items: center; width: 56px;
	border: 0; cursor: pointer; color: #fff;
	transition: opacity var(--lv-transition);
}
.lv-cat-strip__arrow svg { width: 22px; height: 22px; }
.lv-cat-strip__arrow--prev { left: 0; justify-content: flex-start; padding-left: 10px; background: linear-gradient(to right, var(--lv-text) 55%, transparent); }
.lv-cat-strip__arrow--next { right: 0; justify-content: flex-end; padding-right: 10px; background: linear-gradient(to left, var(--lv-text) 55%, transparent); }
.lv-cat-strip__arrow:hover { color: var(--lv-secondary, #ffe9e6); }
.lv-cat-strip__arrow.is-disabled { opacity: 0; pointer-events: none; }
.lv-cat-strip.is-scrollable .lv-cat-strip__arrow { display: flex; }
.lv-cat-strip.is-scrollable .lv-cat-strip__inner { justify-content: flex-start; }

/* Full-width grid; filters live in a drawer opened from the toolbar (design). */
.lv-shop {
	display: block;
	padding-block: 28px var(--lv-space);
}

.lv-shop__filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid var(--lv-border);
	background: var(--lv-bg);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--lv-transition);
}
.lv-shop__filters-toggle:hover { border-color: var(--lv-text); }

/* ---------- Filters drawer ---------- */
.lv-shop__sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(360px, 88vw);
	background: var(--lv-bg);
	z-index: 120;
	transform: translateX(-100%);
	transition: transform .3s ease;
	overflow-y: auto;
	padding: 20px 24px 32px;
}
.lv-shop__sidebar.is-open { transform: translateX(0); }
.lv-shop__sidebar[hidden] { display: block; visibility: hidden; }
.lv-shop__sidebar.is-open[hidden] { visibility: visible; }
.lv-shop__sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 18px;
}
.lv-shop__sidebar-head button { background: none; border: 0; cursor: pointer; padding: 6px; }
.lv-filter-group {
	border: 0;
	padding: 0 0 22px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--lv-border);
}
.lv-filter-group__title {
	font-family: var(--lv-font-heading);
	font-weight: 700;
	font-size: 15px;
	padding: 0;
	margin-bottom: 12px;
}
.lv-filter-group__body { display: grid; gap: 10px; }

.lv-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
	color: var(--lv-muted);
}
.lv-check:hover { color: var(--lv-text); }
.lv-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--lv-primary);
	margin: 0;
	flex-shrink: 0;
}
.lv-check__count { margin-left: auto; font-style: normal; font-size: 12px; color: var(--lv-muted); }

.lv-filter-price { display: flex; align-items: center; gap: 8px; }
.lv-filter-price input { padding: 9px 12px; font-size: 14px; }

.lv-filter-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.lv-swatch { cursor: pointer; }
.lv-swatch input { position: absolute; opacity: 0; }
.lv-swatch__dot {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--swatch, #ddd);
	border: 2px solid var(--lv-bg);
	box-shadow: 0 0 0 1.5px var(--lv-border);
	transition: box-shadow var(--lv-transition);
}
.lv-swatch input:checked + .lv-swatch__dot { box-shadow: 0 0 0 2px var(--lv-primary); }
.lv-filters__actions { display: flex; gap: 10px; }

/* ---------- Shop intro (single category only) ---------- */
.lv-shop-intro { padding-block: 28px 4px; }
.lv-shop-intro__title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.lv-shop-intro__desc { color: var(--lv-muted); max-width: 720px; }

/* ---------- Toolbar ---------- */
.lv-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.lv-shop__crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lv-muted); }
.lv-shop__crumbs a:hover { color: var(--lv-text); }
.lv-shop__crumbs span[aria-current] { color: var(--lv-text); }
.lv-shop__show { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lv-shop__show-label { color: var(--lv-muted); }
.lv-shop__show-opt { color: var(--lv-muted); font-weight: 500; }
.lv-shop__show-opt:hover { color: var(--lv-text); }
.lv-shop__show-opt.is-active { color: var(--lv-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lv-shop__count { margin: 0; color: var(--lv-muted); font-size: 13px; }
.lv-shop__tools { display: flex; align-items: center; gap: 16px; }
.lv-shop__view { display: inline-flex; gap: 4px; }
.lv-shop__view button {
	border: 0;
	background: none;
	padding: 6px;
	cursor: pointer;
	color: var(--lv-muted);
	border-radius: 6px;
}
.lv-shop__view button.is-active { color: var(--lv-text); }
.lv-shop__view button:hover { color: var(--lv-text); }

/* ---------- Grid / list ---------- */
.lv-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--lv-grid-cols, var(--lv-shop-cols)), 1fr);
	gap: 32px 24px; /* Figma: 32px between rows, 24px between cards */
}
.lv-product-grid.is-loading { opacity: .45; pointer-events: none; }

.lv-product-grid.is-list { grid-template-columns: 1fr; gap: 20px; }
.lv-product-grid.is-list .lv-card { flex-direction: row; gap: 24px; align-items: center; }
.lv-product-grid.is-list .lv-card__media { width: 220px; flex-shrink: 0; }
.lv-product-grid.is-list .lv-card__body { padding: 0; }
.lv-product-grid.is-list .lv-card__title { font-size: 19px; }

/* ---------- Responsive ---------- */
/* Tablet / small-laptop: 4 cols is cramped, so step the shop grid to 3 before
   it drops to 2 on phones. Scoped to the shop archive so it never overrides a
   home section that deliberately asks for 2 columns. */
@media (max-width: 1100px) {
	.lv-shop .lv-product-grid:not(.is-list) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) {
	.lv-product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
	.lv-shop .lv-product-grid:not(.is-list) { grid-template-columns: repeat(2, 1fr); }
	.lv-shop__toolbar { flex-wrap: wrap; }
	.lv-shop__count { display: none; }
	/* List view: shrink the fixed 220px media so the text isn't crushed. */
	.lv-product-grid.is-list .lv-card__media { width: 40%; max-width: 150px; }
	.lv-product-grid.is-list .lv-card__title { font-size: 16px; }
}
@media (max-width: 380px) {
	.lv-product-grid { gap: 16px 10px; }
	.lv-product-grid.is-list .lv-card { flex-direction: column; align-items: stretch; }
	.lv-product-grid.is-list .lv-card__media { width: 100%; max-width: none; }
}
