/* ==========================================================================
   Belle Moment — catalog layer
   Product listing (PLP) and product detail (PDP) styles.
   Loaded only on catalog requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Listing head
   -------------------------------------------------------------------------- */
.bm-plp-head {
	text-align: center;
	padding-bottom: 26px;
}

.bm-plp-head__title {
	font-family: var(--bm-font-display);
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 600;
	line-height: 1.1;
	margin-bottom: 12px;
}

.bm-plp-head__desc {
	max-width: 62ch;
	margin: 0 auto 12px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--bm-charcoal-soft);
}

.bm-plp-head__count {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bm-charcoal-soft);
}

/* --------------------------------------------------------------------------
   2. Category strip
   -------------------------------------------------------------------------- */
.bm-plp__cats {
	display: flex;
	gap: clamp(14px, 2vw, 28px);
	justify-content: center;
	flex-wrap: wrap;
	padding: 8px 0 26px;
	border-bottom: 1px solid rgba(37, 34, 31, 0.1);
	margin-bottom: 24px;
}

.bm-plp__cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	width: 82px;
	text-align: center;
	color: var(--bm-charcoal);
	text-decoration: none;
}

.bm-plp__cat-ring {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bm-ivory);
	border: 1px solid transparent;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.bm-plp__cat-ring img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bm-plp__cat-ring--all {
	color: var(--bm-charcoal-soft);
}

.bm-plp__cat-name {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.3;
}

.bm-plp__cat:hover .bm-plp__cat-ring,
.bm-plp__cat.is-active .bm-plp__cat-ring {
	border-color: var(--bm-champagne);
	transform: translateY(-2px);
}

.bm-plp__cat.is-active .bm-plp__cat-name {
	color: var(--bm-champagne);
}

/* --------------------------------------------------------------------------
   3. Result bar + sort
   -------------------------------------------------------------------------- */
.bm-plp__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 22px;
}

.bm-plp__result {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bm-charcoal-soft);
}

.bm-sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bm-sort__label {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bm-charcoal-soft);
}

.bm-sort__field {
	position: relative;
	display: flex;
	align-items: center;
}

.bm-sort__field select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(37, 34, 31, 0.22);
	background: transparent;
	color: var(--bm-charcoal);
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.06em;
	padding: 9px 34px 9px 12px;
	cursor: pointer;
	min-width: 168px;
}

.bm-sort__field select:focus-visible {
	border-color: var(--bm-champagne);
}

.bm-sort__field svg {
	position: absolute;
	right: 11px;
	pointer-events: none;
	transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   4. Product grid
   -------------------------------------------------------------------------- */
.bm-grid {
	display: grid;
	gap: clamp(14px, 1.6vw, 24px);
}

.bm-grid--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bm-plp__grid {
	padding-bottom: 34px;
}

.bm-empty {
	padding: 70px 0;
	text-align: center;
	color: var(--bm-charcoal-soft);
}

.bm-empty p {
	margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   5. SEO copy block
   -------------------------------------------------------------------------- */
.bm-plp-seo {
	border-top: 1px solid rgba(37, 34, 31, 0.1);
}

.bm-plp-seo__inner {
	max-width: 78ch;
}

.bm-plp-seo .bm-section-title {
	margin-bottom: 14px;
}

.bm-plp-seo p {
	font-size: 14px;
	line-height: 1.8;
	color: var(--bm-charcoal-soft);
}

/* --------------------------------------------------------------------------
   6. PDP layout
   -------------------------------------------------------------------------- */
.bm-pdp-breadcrumb {
	padding: 18px 0 0;
}

.bm-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(24px, 4vw, 66px);
	align-items: start;
	padding-top: clamp(22px, 3vw, 40px);
	padding-bottom: clamp(34px, 5vw, 76px);
}

/* Gallery ----------------------------------------------------------------- */
.bm-pdp__stage {
	position: relative;
	background: var(--bm-ivory);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.bm-pdp__frame {
	margin: 0;
	width: 100%;
	height: 100%;
}

.bm-pdp__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bm-pdp__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
}

.bm-pdp__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.86);
	border: 0;
	cursor: pointer;
	color: var(--bm-charcoal);
	transition: background 0.2s ease;
}

.bm-pdp__nav:hover {
	background: var(--bm-white);
}

.bm-pdp__nav--prev {
	left: 12px;
}

.bm-pdp__nav--prev svg {
	transform: rotate(180deg);
}

.bm-pdp__nav--next {
	right: 12px;
}

.bm-pdp__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.bm-pdp__thumbs::-webkit-scrollbar {
	display: none;
}

.bm-pdp__thumb {
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid transparent;
	background: var(--bm-ivory);
	cursor: pointer;
	overflow: hidden;
}

.bm-pdp__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bm-pdp__thumb.is-active {
	border-color: var(--bm-charcoal);
}

/* Info column ------------------------------------------------------------- */
.bm-pdp__info {
	padding-top: 6px;
}

.bm-pdp__cat {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bm-champagne);
	margin-bottom: 10px;
	text-decoration: none;
}

.bm-pdp__title {
	font-family: var(--bm-font-display);
	font-size: clamp(26px, 2.7vw, 38px);
	font-weight: 600;
	line-height: 1.15;
	margin-bottom: 12px;
}

.bm-pdp__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 16px;
	margin-bottom: 16px;
}

.bm-pdp__price ins {
	text-decoration: none;
	color: var(--bm-charcoal);
}

.bm-pdp__price del {
	color: rgba(37, 34, 31, 0.45);
	font-size: 14px;
}

.bm-pdp__sku {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(37, 34, 31, 0.45);
	margin-left: auto;
}

.bm-pdp__intro {
	font-size: 14px;
	line-height: 1.75;
	color: var(--bm-charcoal-soft);
	margin-bottom: 24px;
	max-width: 46ch;
}

/* Variants ---------------------------------------------------------------- */
.bm-pdp__variants {
	display: grid;
	gap: 18px;
	padding: 20px 0;
	border-top: 1px solid rgba(37, 34, 31, 0.1);
	border-bottom: 1px solid rgba(37, 34, 31, 0.1);
	margin-bottom: 20px;
}

.bm-variant {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.bm-variant__label {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bm-charcoal-soft);
	min-width: 48px;
}

.bm-variant__swatches,
.bm-variant__sizes {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.bm-swatch {
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(37, 34, 31, 0.18);
	background: var(--swatch, #ccc);
	cursor: pointer;
	position: relative;
}

.bm-swatch.is-active::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid var(--bm-charcoal);
	border-radius: 50%;
}

.bm-size {
	min-width: 44px;
	padding: 7px 12px;
	border: 1px solid rgba(37, 34, 31, 0.22);
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--bm-charcoal);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bm-size:hover {
	border-color: var(--bm-charcoal);
}

.bm-size.is-active {
	background: var(--bm-charcoal);
	border-color: var(--bm-charcoal);
	color: var(--bm-white);
}

.bm-variant__guide {
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--bm-charcoal-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-left: auto;
}

/* Buy bar ----------------------------------------------------------------- */
.bm-pdp__buy {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 12px;
}

.bm-qty {
	display: flex;
	align-items: center;
	border: 1px solid rgba(37, 34, 31, 0.22);
}

.bm-qty__btn {
	width: 38px;
	height: 100%;
	min-height: 46px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: var(--bm-charcoal);
}

.bm-qty__btn:hover {
	background: var(--bm-ivory);
}

.bm-qty__input {
	width: 34px;
	border: 0;
	text-align: center;
	font-family: inherit;
	font-size: 13px;
	background: transparent;
	-moz-appearance: textfield;
}

.bm-qty__input::-webkit-outer-spin-button,
.bm-qty__input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.bm-pdp__add {
	min-height: 46px;
	letter-spacing: 0.16em;
}

.bm-pdp__add.is-added {
	background: var(--bm-champagne);
	border-color: var(--bm-champagne);
}

.bm-pdp__wish {
	width: 46px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(37, 34, 31, 0.22);
	background: transparent;
	cursor: pointer;
	color: var(--bm-charcoal);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.bm-pdp__wish:hover,
.bm-pdp__wish.is-active {
	border-color: var(--bm-champagne);
	color: var(--bm-champagne);
}

.bm-pdp__stock {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bm-charcoal-soft);
	margin-bottom: 22px;
}

/* Assurance list ---------------------------------------------------------- */
.bm-pdp__assurance {
	list-style: none;
	display: grid;
	gap: 10px;
	padding: 18px 0;
	border-top: 1px solid rgba(37, 34, 31, 0.1);
	margin-bottom: 6px;
}

.bm-pdp__assurance li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--bm-charcoal-soft);
}

.bm-pdp__assurance svg {
	color: var(--bm-champagne);
	flex: 0 0 auto;
}

/* Accordion --------------------------------------------------------------- */
.bm-accordion {
	border-top: 1px solid rgba(37, 34, 31, 0.1);
}

.bm-accordion__item {
	border-bottom: 1px solid rgba(37, 34, 31, 0.1);
}

.bm-accordion__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bm-charcoal);
	text-align: left;
}

.bm-accordion__head svg {
	transform: rotate(90deg);
	transition: transform 0.25s ease;
	flex: 0 0 auto;
}

.bm-accordion__item.is-open .bm-accordion__head svg {
	transform: rotate(-90deg);
}

.bm-accordion__body {
	padding: 0 0 18px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--bm-charcoal-soft);
}

.bm-accordion__body[hidden] {
	display: none;
}

.bm-spec {
	list-style: none;
	display: grid;
	gap: 7px;
}

.bm-spec li {
	display: flex;
	gap: 12px;
}

.bm-spec span {
	min-width: 84px;
	color: rgba(37, 34, 31, 0.5);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding-top: 2px;
}

/* Related ----------------------------------------------------------------- */
.bm-pdp-related {
	border-top: 1px solid rgba(37, 34, 31, 0.1);
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.bm-pdp__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 30px;
	}

	.bm-grid--four {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.bm-pdp__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bm-grid--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bm-pdp__stage {
		aspect-ratio: 4 / 5;
	}

	.bm-plp__cats {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bm-plp__cats::-webkit-scrollbar {
		display: none;
	}

	.bm-plp__cat {
		flex: 0 0 auto;
	}

	.bm-pdp__buy {
		grid-template-columns: auto 1fr;
	}

	.bm-pdp__wish {
		grid-column: 1 / -1;
		width: 100%;
		min-height: 44px;
	}
}

@media (max-width: 620px) {
	.bm-plp__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.bm-sort,
	.bm-sort__field {
		width: 100%;
	}

	.bm-sort__field select {
		width: 100%;
		min-width: 0;
	}

	.bm-pdp__nav {
		width: 34px;
		height: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bm-plp__cat-ring,
	.bm-accordion__head svg {
		transition: none;
	}
}
