/* Beau Skin Artistry — custom Shop page. Clean minimal SaaS layout, dark brand palette. */

:root {
	--bsa-bg: #100F0D;
	--bsa-bg-2: #1B1917;
	--bsa-ivory: #F4EEE1;
	--bsa-text: #B9B2A2;
	--bsa-gold: #C9A662;
	--bsa-border: rgba(201, 166, 98, 0.15);
}

.bsa-shop {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
	max-width: 1400px;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 32px 24px 80px;
	background: var(--bsa-bg);
	color: var(--bsa-text);
	font-family: "Roboto Serif", sans-serif;
	font-size: 13px;
	overflow-x: hidden;
}
.bsa-shop * { box-sizing: border-box; }

/* ---------- Sidebar ---------- */
.bsa-shop__sidebar {
	flex: 0 0 220px;
	position: sticky;
	top: 24px;
}

.bsa-filter-group {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bsa-border);
}
.bsa-filter-group:last-child { border-bottom: none; }

.bsa-filter-title {
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bsa-ivory);
	margin: 0 0 14px;
}

.bsa-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bsa-filter-list li { margin-bottom: 10px; }
.bsa-filter-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: var(--bsa-text);
}
.bsa-filter-list input[type="radio"] {
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid var(--bsa-border);
	background: transparent;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
}
.bsa-filter-list input[type="radio"]:checked {
	border-color: var(--bsa-gold);
}
.bsa-filter-list input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--bsa-gold);
}
.bsa-filter-list em {
	font-style: normal;
	color: rgba(185, 178, 162, 0.5);
	font-size: 12px;
}
.bsa-filter-list label:hover span { color: var(--bsa-ivory); }

.bsa-price-display {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--bsa-ivory);
	font-weight: 600;
	margin-bottom: 14px;
}
.bsa-price-sep { color: var(--bsa-text); font-weight: 400; }

.bsa-range-slider {
	position: relative;
	height: 4px;
	margin: 10px 4px 6px;
	background: var(--bsa-bg-2);
	border-radius: 2px;
}
.bsa-range-track {
	position: absolute;
	inset: 0;
	background: var(--bsa-border);
	border-radius: 2px;
}
.bsa-range-fill {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--bsa-gold);
	border-radius: 2px;
}
/* Two overlapping native range inputs share the same track; only their thumbs
   are visible (transparent track + no fill of their own) so they read as one
   dual-handle slider instead of two stacked bars. */
.bsa-range-input {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-50%);
	appearance: none;
	background: transparent;
	pointer-events: none;
}
.bsa-range-input::-webkit-slider-runnable-track { background: transparent; height: 4px; }
.bsa-range-input::-moz-range-track { background: transparent; height: 4px; }
.bsa-range-input::-webkit-slider-thumb {
	appearance: none;
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--bsa-gold);
	border: 2px solid var(--bsa-bg);
	box-shadow: 0 0 0 1px var(--bsa-gold);
	cursor: pointer;
	margin-top: 0;
}
.bsa-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--bsa-gold);
	border: 2px solid var(--bsa-bg);
	box-shadow: 0 0 0 1px var(--bsa-gold);
	cursor: pointer;
}

.bsa-chip-list {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.bsa-chip {
	background: var(--bsa-bg-2) !important;
	border: 1px solid var(--bsa-border) !important;
	color: var(--bsa-text) !important;
	border-radius: 14px !important;
	padding: 4px 10px !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.bsa-chip:hover {
	border-color: rgba(201, 166, 98, 0.4) !important;
	color: var(--bsa-ivory) !important;
}
.bsa-chip.is-active {
	background: rgba(201, 166, 98, 0.14) !important;
	border-color: rgba(201, 166, 98, 0.55) !important;
	color: var(--bsa-gold) !important;
	font-weight: 600 !important;
}

/* ---------- Main ---------- */
.bsa-shop__main {
	flex: 1;
	min-width: 0;
}

.bsa-shop__intro {
	max-width: 720px;
	margin-bottom: 28px;
}
.bsa-shop__intro-kicker {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bsa-gold);
	margin-bottom: 10px;
}
.bsa-shop__intro-text {
	color: var(--bsa-text);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

.bsa-shop__intro {
	max-width: 720px;
	margin-bottom: 28px;
}
.bsa-shop__intro-kicker {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bsa-gold);
	margin-bottom: 10px;
}
.bsa-shop__intro-text {
	color: var(--bsa-text);
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

.bsa-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.bsa-shop__heading {
	font-family: "Roboto Serif", serif;
	font-size: 32px;
	font-weight: 500;
	color: var(--bsa-ivory);
	margin: 0;
}
.bsa-shop__search input {
	width: 260px;
	background: var(--bsa-bg-2);
	border: 1px solid var(--bsa-border);
	border-radius: 20px;
	padding: 9px 16px;
	color: var(--bsa-ivory);
	font-size: 13px;
	font-family: inherit;
}
.bsa-shop__search input::placeholder { color: rgba(185, 178, 162, 0.6); }
.bsa-shop__search input:focus {
	outline: none;
	border-color: var(--bsa-gold);
}

.bsa-shop__pills {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 18px;
	scrollbar-width: none;
}
.bsa-shop__pills::-webkit-scrollbar { display: none; }
.bsa-pill {
	flex-shrink: 0;
	/* Subtle dark glassmorphism — small and quiet, not a bright attention-grabber.
	   !important throughout this button: Elementor stamps an `elementor-kit-*`
	   class on <body> on every page site-wide (not just Elementor-built ones),
	   and its kit CSS includes a blanket `.elementor-kit-* button { ... }` rule
	   with higher specificity than a plain class selector — it was silently
	   winning over all of these properties otherwise. */
	background: rgba(27, 25, 23, 0.5) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(201, 166, 98, 0.18) !important;
	color: rgba(185, 178, 162, 0.85) !important;
	border-radius: 14px !important;
	padding: 5px 12px !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}
.bsa-pill:hover {
	border-color: rgba(201, 166, 98, 0.4) !important;
	color: var(--bsa-ivory) !important;
	background: rgba(27, 25, 23, 0.75) !important;
}
.bsa-pill--active {
	background: rgba(201, 166, 98, 0.14) !important;
	border-color: rgba(201, 166, 98, 0.55) !important;
	color: var(--bsa-gold) !important;
	font-weight: 600 !important;
}

.bsa-shop__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	font-size: 12px;
	color: rgba(185, 178, 162, 0.7);
}
#bsa-sort {
	background: var(--bsa-bg-2);
	border: 1px solid var(--bsa-border);
	color: var(--bsa-ivory);
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 12px;
	font-family: inherit;
}

/* ---------- Product grid ---------- */
.bsa-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1200px) { .bsa-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .bsa-product-grid { grid-template-columns: repeat(2, 1fr); } }
/* Stay at 2 columns all the way down to phone width — matches how virtually
   every modern mobile shopping app lays out a product grid; a single full-width
   column wastes space and reads as unfinished. */

.bsa-card {
	/* Grid items default to min-width:auto, which resolves to the content's
	   natural size (here, the product image) instead of shrinking to fit the
	   1fr track — this is what was blowing the whole layout out sideways on
	   mobile. min-width:0 forces it to respect the grid track instead. */
	min-width: 0;
	background: var(--bsa-bg-2);
	border: 1px solid var(--bsa-border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bsa-card:hover {
	border-color: var(--bsa-gold);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(201, 166, 98, 0.12);
}
.bsa-card__image-link {
	position: relative;
	display: block;
	width: 100%;
	background: #24221F;
}
.bsa-card__image {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.bsa-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--bsa-gold);
	color: var(--bsa-bg);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 8px;
	border-radius: 4px;
}
.bsa-card__wish {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background: rgba(16, 15, 13, 0.6) !important;
	border: none !important;
	color: var(--bsa-ivory) !important;
	padding: 0 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bsa-card__wish svg { display: block; width: 14px !important; height: 14px !important; flex-shrink: 0; }
.bsa-card__wish:hover { background: rgba(16, 15, 13, 0.85) !important; color: var(--bsa-gold) !important; transform: scale(1.08); }
.bsa-card__wish.is-active { color: #d9536a !important; }
.bsa-card__wish.is-active svg { fill: currentColor; }
.bsa-card__wish.is-active:hover { color: #e26d81; }

.bsa-card__body { padding: 14px 14px 16px; }
.bsa-card__title {
	display: block;
	color: var(--bsa-ivory);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 6px;
	line-height: 1.4;
}
.bsa-card__title:hover { color: var(--bsa-gold); }

.bsa-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--bsa-text);
	margin-bottom: 8px;
}
.bsa-card__star { color: var(--bsa-gold); }
.bsa-card__reviews { color: rgba(185, 178, 162, 0.55); }

.bsa-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.bsa-card__price {
	color: var(--bsa-gold);
	font-size: 14px;
	font-weight: 600;
}
.bsa-card__price del { color: rgba(185, 178, 162, 0.5); font-weight: 400; margin-right: 6px; font-size: 12px; }
.bsa-card__price ins { text-decoration: none; }

.bsa-card__cart {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background: var(--bsa-gold) !important;
	border: none !important;
	color: var(--bsa-bg) !important;
	padding: 0 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bsa-card__cart svg { display: block; width: 14px !important; height: 14px !important; flex-shrink: 0; }
.bsa-card__cart:hover {
	background: var(--bsa-ivory) !important;
	transform: scale(1.08);
	box-shadow: 0 2px 10px rgba(201, 166, 98, 0.35);
}

.bsa-no-products {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--bsa-text);
	padding: 60px 0;
}

/* ---------- Load more ---------- */
.bsa-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}
.bsa-load-more {
	background: transparent !important;
	border: 1px solid var(--bsa-gold) !important;
	color: var(--bsa-gold) !important;
	border-radius: 20px !important;
	padding: 10px 28px !important;
	font-size: 13px !important;
	font-family: inherit !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.bsa-load-more:hover {
	background: var(--bsa-gold) !important;
	color: var(--bsa-bg) !important;
	box-shadow: 0 4px 16px rgba(201, 166, 98, 0.25);
}
.bsa-loader { color: var(--bsa-text); font-size: 13px; }

/* Fading transition when swapping grid content via AJAX */
.bsa-product-grid.is-loading { opacity: 0.4; pointer-events: none; transition: opacity 0.2s ease; }

/* ---------- Filter drawer toggle + close + header (mobile only) ---------- */
.bsa-filter-toggle {
	display: none; /* shown only below 900px */
	align-items: center;
	gap: 6px;
	background: rgba(27, 25, 23, 0.5) !important;
	border: 1px solid rgba(201, 166, 98, 0.25) !important;
	color: var(--bsa-ivory) !important;
	border-radius: 8px !important;
	padding: 9px 14px !important;
	font-size: 12px !important;
	font-family: inherit !important;
	cursor: pointer;
	margin-bottom: 16px;
}
.bsa-filter-drawer-header { display: none; }
.bsa-filter-close {
	background: none !important;
	border: none !important;
	color: var(--bsa-text) !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
	padding: 0 !important;
}
.bsa-filter-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 998;
}
.bsa-filter-backdrop.is-open { display: block; }

@media (max-width: 900px) {
	.bsa-shop {
		flex-direction: column;
		/* align-items:flex-start (set above for the desktop row layout) controls
		   the CROSS axis — once flex-direction flips to column, the cross axis
		   becomes horizontal, so flex-start stops children stretching to the
		   container width and they revert to sizing off their own content
		   instead (which is what was still causing overflow here). */
		align-items: stretch;
	}
	.bsa-shop__main { width: 100%; min-width: 0; }

	.bsa-filter-toggle { display: inline-flex; }

	/* Sidebar becomes an off-canvas slide-in drawer instead of stacking above
	   the products — on a phone, nobody should have to scroll past every
	   filter group just to reach the grid. */
	.bsa-shop__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 280px;
		max-width: 85vw;
		background: var(--bsa-bg);
		border-right: 1px solid var(--bsa-border);
		padding: 20px;
		overflow-y: auto;
		z-index: 999;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}
	.bsa-shop__sidebar.is-open { transform: translateX(0); }

	.bsa-filter-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 20px;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--bsa-border);
		font-size: 13px;
		font-weight: 600;
		color: var(--bsa-ivory);
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}
}

@media (max-width: 640px) {
	.bsa-shop { padding: 20px 16px 56px; gap: 24px; font-size: 12px; }

	.bsa-shop__toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
	.bsa-shop__heading { font-size: 26px; }
	.bsa-shop__search, .bsa-shop__search input { width: 100%; }

	.bsa-filter-group { margin-bottom: 20px; padding-bottom: 16px; }

	.bsa-product-grid { gap: 10px; }
	.bsa-card__body { padding: 10px 10px 12px; }
	.bsa-card__title { font-size: 14px; }
	.bsa-card__price { font-size: 13px; }

	.bsa-shop__meta { font-size: 11px; }
}
