/*
Theme Name: Belle Moment
Theme URI: https://bellemoment.com/
Author: Belle Moment
Author URI: https://bellemoment.com/
Description: Belle Moment — a design-led fine jewelry storefront theme. Editorial, gallery-like layout modeled on modern luxury jewelry retail: announcement bar, mega-menu header with utility rail, full-bleed hero carousel, promo split banners, circular category tiles, editorial features, product carousels, trust bar, newsletter and a five-column footer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belle-moment
Tags: e-commerce, jewelry, luxury, editorial, custom-colors, custom-menu, featured-images, translation-ready, block-styles, wide-blocks

Belle Moment is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Table of contents
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Announcement bar
   7.  Header / mega menu
   8.  Search overlay
   9.  Mobile drawer
   10. Hero carousel
   11. Promo split
   12. Category tiles
   13. Product cards & carousels
   14. Editorial feature
   15. Trust bar
   16. Newsletter
   17. Footer
   18. Content / blog / pages
   19. Utilities
   20. Responsive
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
	/* Brand palette */
	--bm-champagne: #b38a57;
	--bm-champagne-dark: #96703f;
	--bm-charcoal: #25221f;
	--bm-charcoal-soft: #4a443d;
	--bm-ivory: #f6f2ea;
	--bm-ivory-deep: #efe9dd;
	--bm-taupe: #b7aa9b;
	--bm-white: #ffffff;
	--bm-line: #e2dacd;
	--bm-line-strong: #cfc4b3;
	--bm-sale: #9d2f2f;

	/* Typography */
	--bm-font-display: "Cormorant Garamond", "Didot", "Bodoni MT", "Times New Roman", serif;
	--bm-font-body: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* Metrics */
	--bm-max: 1560px;
	--bm-gutter: clamp(16px, 3vw, 44px);
	--bm-rail-h: 38px;
	--bm-header-h: 68px;
	--bm-radius: 2px;

	/* Motion */
	--bm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--bm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bm-white);
	color: var(--bm-charcoal);
	font-family: var(--bm-font-body);
	font-size: 15px;
	line-height: 1.65;
	font-weight: 400;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.bm-no-scroll {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--bm-font-display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--bm-champagne);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--bm-charcoal);
	color: var(--bm-white);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* 3. Typography
   ========================================================================== */
.bm-eyebrow {
	display: block;
	font-family: var(--bm-font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bm-charcoal-soft);
	margin-bottom: 14px;
}

.bm-eyebrow--light {
	color: rgba(255, 255, 255, 0.86);
}

.bm-display {
	font-family: var(--bm-font-display);
	font-size: clamp(30px, 4.4vw, 62px);
	font-weight: 300;
	line-height: 1.06;
	letter-spacing: 0.005em;
}

.bm-section-title {
	font-family: var(--bm-font-display);
	font-size: clamp(23px, 2.4vw, 34px);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.bm-lede {
	font-size: 16px;
	line-height: 1.7;
	color: var(--bm-charcoal-soft);
	max-width: 62ch;
}

/* 4. Layout primitives
   ========================================================================== */
.bm-container {
	width: 100%;
	max-width: var(--bm-max);
	margin: 0 auto;
	padding: 0 var(--bm-gutter);
}

.bm-container--wide {
	max-width: none;
	padding: 0;
}

.bm-section {
	padding: clamp(44px, 6vw, 88px) 0;
}

.bm-section--tight {
	padding: clamp(28px, 3.4vw, 48px) 0;
}

.bm-section--ivory {
	background: var(--bm-ivory);
}

.bm-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(20px, 2.4vw, 34px);
}

.bm-section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.bm-section-head__link {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	white-space: nowrap;
	transition: opacity 0.25s var(--bm-ease);
}

.bm-section-head__link:hover {
	opacity: 0.6;
}

/* 5. Buttons & links
   ========================================================================== */
.bm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 34px;
	font-family: var(--bm-font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border: 1px solid var(--bm-charcoal);
	background: transparent;
	color: var(--bm-charcoal);
	transition: background 0.3s var(--bm-ease), color 0.3s var(--bm-ease), border-color 0.3s var(--bm-ease);
	cursor: pointer;
}

.bm-btn:hover {
	background: var(--bm-charcoal);
	color: var(--bm-white);
}

.bm-btn--solid {
	background: var(--bm-charcoal);
	color: var(--bm-white);
	border-color: var(--bm-charcoal);
}

.bm-btn--solid:hover {
	background: var(--bm-champagne);
	border-color: var(--bm-champagne);
	color: var(--bm-white);
}

.bm-btn--light {
	border-color: var(--bm-white);
	color: var(--bm-white);
}

.bm-btn--light:hover {
	background: var(--bm-white);
	color: var(--bm-charcoal);
}

.bm-btn--gold {
	background: var(--bm-champagne);
	border-color: var(--bm-champagne);
	color: var(--bm-white);
}

.bm-btn--gold:hover {
	background: var(--bm-champagne-dark);
	border-color: var(--bm-champagne-dark);
	color: var(--bm-white);
}

.bm-btn--block {
	width: 100%;
}

.bm-link-underline {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.25s var(--bm-ease);
}

.bm-link-underline:hover {
	opacity: 0.6;
}

/* 6. Announcement bar
   ========================================================================== */
.bm-announce {
	position: relative;
	background: var(--bm-charcoal);
	color: rgba(255, 255, 255, 0.94);
	height: var(--bm-rail-h);
	overflow: hidden;
}

.bm-announce__track {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	gap: clamp(24px, 4vw, 64px);
	padding: 0 var(--bm-gutter);
	font-size: 10.5px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bm-announce__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0.92;
	transition: opacity 0.25s var(--bm-ease);
}

.bm-announce__item:hover {
	opacity: 1;
}

.bm-announce__sep {
	width: 1px;
	height: 11px;
	background: rgba(255, 255, 255, 0.28);
}

/* 7. Header / mega menu
   ========================================================================== */
.bm-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--bm-white);
	border-bottom: 1px solid var(--bm-line);
}

/* The mega panel is anchored to .bm-header (a positioned sticky element),
   not to the nav item, so it can span the full header width. */

.bm-header__main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	max-width: var(--bm-max);
	margin: 0 auto;
	padding: 0 var(--bm-gutter);
	height: var(--bm-header-h);
}

.bm-header__left,
.bm-header__right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bm-header__right {
	justify-content: flex-end;
}

.bm-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	gap: 3px;
	color: var(--bm-charcoal);
}

.bm-logo__mark {
	width: 26px;
	height: 26px;
	color: var(--bm-champagne);
}

.bm-logo__word {
	font-family: var(--bm-font-display);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	padding-left: 0.3em;
}

.bm-logo__sub {
	font-size: 7.5px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--bm-taupe);
	padding-left: 0.34em;
}

.bm-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 1.7vw, 30px);
	height: 46px;
	max-width: var(--bm-max);
	margin: 0 auto;
	padding: 0 var(--bm-gutter);
}

.bm-nav__item {
	display: flex;
	align-items: center;
	height: 100%;
}

.bm-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 100%;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bm-charcoal);
	transition: color 0.25s var(--bm-ease);
	white-space: nowrap;
}

.bm-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	height: 1px;
	background: var(--bm-champagne);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--bm-ease-out);
}

.bm-nav__item:hover > .bm-nav__link::after,
.bm-nav__item.is-open > .bm-nav__link::after {
	transform: scaleX(1);
}

.bm-nav__item:hover > .bm-nav__link,
.bm-nav__item.is-open > .bm-nav__link {
	color: var(--bm-champagne-dark);
}

.bm-nav__chev {
	width: 7px;
	height: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translate(-1px, -2px);
	transition: transform 0.3s var(--bm-ease);
	opacity: 0.7;
}

.bm-nav__item.is-open .bm-nav__chev {
	transform: rotate(225deg) translate(-2px, -1px);
}

/* utility rail */
.bm-util {
	display: flex;
	align-items: center;
	gap: 2px;
}

.bm-util__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--bm-charcoal);
	border-radius: 50%;
	transition: background 0.25s var(--bm-ease), color 0.25s var(--bm-ease);
	position: relative;
}

.bm-util__btn:hover {
	background: var(--bm-ivory);
	color: var(--bm-champagne-dark);
}

.bm-util__btn svg {
	width: 19px;
	height: 19px;
	stroke-width: 1.35;
}

.bm-util__count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	background: var(--bm-champagne);
	color: var(--bm-white);
	font-size: 9.5px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	border-radius: 999px;
}

/* search inline field */
.bm-search-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	background: var(--bm-ivory);
	border: 1px solid transparent;
	border-radius: 999px;
	transition: border-color 0.25s var(--bm-ease), background 0.25s var(--bm-ease);
}

.bm-search-inline:focus-within {
	background: var(--bm-white);
	border-color: var(--bm-line-strong);
}

.bm-search-inline svg {
	width: 15px;
	height: 15px;
	color: var(--bm-charcoal-soft);
	flex: 0 0 auto;
}

.bm-search-inline input {
	width: 120px;
	background: none;
	border: 0;
	outline: none;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.bm-search-inline input::placeholder {
	color: var(--bm-taupe);
}

/* mega panel — spans the full header width */
.bm-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bm-white);
	border-top: 1px solid var(--bm-line);
	border-bottom: 1px solid var(--bm-line);
	box-shadow: 0 26px 48px -28px rgba(37, 34, 31, 0.26);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.28s var(--bm-ease), transform 0.28s var(--bm-ease), visibility 0.28s;
	z-index: 880;
}

.bm-nav__item.is-open .bm-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bm-mega__inner {
	display: grid;
	grid-template-columns: repeat(var(--bm-mega-cols, 4), minmax(0, 1fr)) 300px;
	gap: clamp(20px, 3vw, 52px);
	max-width: var(--bm-max);
	margin: 0 auto;
	padding: 34px var(--bm-gutter) 38px;
}

.bm-mega__col-title {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bm-taupe);
	margin-bottom: 14px;
}

.bm-mega__links {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.bm-mega__links a {
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--bm-charcoal);
	transition: color 0.2s var(--bm-ease), padding-left 0.2s var(--bm-ease);
}

.bm-mega__links a:hover {
	color: var(--bm-champagne-dark);
	padding-left: 4px;
}

.bm-mega__promo {
	position: relative;
	overflow: hidden;
	background: var(--bm-ivory);
}

.bm-mega__promo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 3 / 4;
	transition: transform 0.7s var(--bm-ease-out);
}

.bm-mega__promo:hover img {
	transform: scale(1.04);
}

.bm-mega__promo-body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 22px;
	background: linear-gradient(to top, rgba(37, 34, 31, 0.78), rgba(37, 34, 31, 0));
	color: var(--bm-white);
}

.bm-mega__promo-body span {
	display: block;
	font-family: var(--bm-font-display);
	font-size: 21px;
	margin-bottom: 8px;
}

.bm-mega__promo-body em {
	font-style: normal;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

/* sticky condense */
.bm-header.is-stuck {
	box-shadow: 0 10px 30px -22px rgba(37, 34, 31, 0.5);
}

/* 8. Search overlay
   ========================================================================== */
.bm-search-layer {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: clamp(70px, 12vh, 150px);
	background: rgba(246, 242, 234, 0.97);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--bm-ease), visibility 0.3s;
}

.bm-search-layer.is-open {
	opacity: 1;
	visibility: visible;
}

.bm-search-layer__box {
	width: min(760px, calc(100% - 2 * var(--bm-gutter)));
	transform: translateY(-14px);
	transition: transform 0.4s var(--bm-ease-out);
}

.bm-search-layer.is-open .bm-search-layer__box {
	transform: translateY(0);
}

.bm-search-layer__label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--bm-taupe);
	margin-bottom: 16px;
}

.bm-search-form {
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 1px solid var(--bm-charcoal);
	padding-bottom: 12px;
}

.bm-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	background: none;
	border: 0;
	outline: none;
	font-family: var(--bm-font-display);
	font-size: clamp(22px, 3.2vw, 38px);
	font-weight: 300;
	letter-spacing: 0.01em;
}

.bm-search-form input::placeholder {
	color: var(--bm-line-strong);
}

.bm-search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--bm-charcoal);
}

.bm-search-form button svg {
	width: 22px;
	height: 22px;
}

.bm-search-layer__close {
	position: absolute;
	top: 26px;
	right: 26px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bm-charcoal);
	transition: transform 0.3s var(--bm-ease);
}

.bm-search-layer__close:hover {
	transform: rotate(90deg);
}

.bm-search-layer__close svg {
	width: 21px;
	height: 21px;
}

.bm-search-layer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.bm-search-layer__tags span {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bm-taupe);
	align-self: center;
	margin-right: 6px;
}

.bm-tag {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 16px;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	border: 1px solid var(--bm-line-strong);
	border-radius: 999px;
	transition: background 0.25s var(--bm-ease), border-color 0.25s var(--bm-ease), color 0.25s var(--bm-ease);
}

.bm-tag:hover {
	background: var(--bm-charcoal);
	border-color: var(--bm-charcoal);
	color: var(--bm-white);
}

/* 9. Mobile drawer
   ========================================================================== */
.bm-burger {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
}

.bm-burger span {
	position: relative;
	display: block;
	width: 19px;
	height: 1px;
	background: var(--bm-charcoal);
	transition: background 0.2s;
}

.bm-burger span::before,
.bm-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 19px;
	height: 1px;
	background: var(--bm-charcoal);
	transition: transform 0.3s var(--bm-ease);
}

.bm-burger span::before {
	top: -6px;
}

.bm-burger span::after {
	top: 6px;
}

.bm-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(400px, 88vw);
	z-index: 1300;
	background: var(--bm-white);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.4s var(--bm-ease-out);
}

.bm-drawer.is-open {
	transform: translateX(0);
}

.bm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px var(--bm-gutter);
	border-bottom: 1px solid var(--bm-line);
	flex: 0 0 auto;
}

.bm-drawer__close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bm-drawer__close svg {
	width: 19px;
	height: 19px;
}

.bm-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 6px 0 30px;
}

.bm-drawer__group {
	border-bottom: 1px solid var(--bm-line);
}

.bm-drawer__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 15px var(--bm-gutter);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-align: left;
}

.bm-drawer__plus {
	position: relative;
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
}

.bm-drawer__plus::before,
.bm-drawer__plus::after {
	content: "";
	position: absolute;
	background: var(--bm-charcoal-soft);
	transition: transform 0.3s var(--bm-ease);
}

.bm-drawer__plus::before {
	top: 5px;
	left: 0;
	width: 11px;
	height: 1px;
}

.bm-drawer__plus::after {
	left: 5px;
	top: 0;
	width: 1px;
	height: 11px;
}

.bm-drawer__group.is-open .bm-drawer__plus::after {
	transform: scaleY(0);
}

.bm-drawer__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s var(--bm-ease);
}

.bm-drawer__group.is-open .bm-drawer__panel {
	grid-template-rows: 1fr;
}

.bm-drawer__panel > div {
	overflow: hidden;
}

.bm-drawer__panel ul {
	padding: 0 var(--bm-gutter) 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bm-drawer__panel a {
	font-size: 13px;
	color: var(--bm-charcoal-soft);
}

.bm-drawer__flat {
	display: block;
	padding: 15px var(--bm-gutter);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.bm-drawer__foot {
	flex: 0 0 auto;
	padding: 18px var(--bm-gutter);
	border-top: 1px solid var(--bm-line);
	background: var(--bm-ivory);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bm-drawer__foot a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.06em;
}

.bm-drawer__foot svg {
	width: 16px;
	height: 16px;
	color: var(--bm-champagne-dark);
}

.bm-overlay {
	position: fixed;
	inset: 0;
	z-index: 1250;
	background: rgba(37, 34, 31, 0.42);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--bm-ease), visibility 0.35s;
}

.bm-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
