/* Bardia Fashion Site: helpers for Elementor widgets + Designs catalogue */
:root {
	--bf-ink: #111111;
	--bf-body: #3D3934;
	--bf-muted: #5C5650;
	--bf-gold: #C9A84C;
	--bf-gold-deep: #745812;
	--bf-gold-text: #9C7C2C;
	--bf-line: #A8873A;
	--bf-beige: #F4ECDD;
	--bf-ivory: #FAF7F1;
	--bf-champ: #E8D6B3;
	--bf-crimson: #720621;
	--bf-display: "Cormorant Garamond", Georgia, serif;
	--bf-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Elementor helper classes (set in each widget's Advanced > CSS Classes) ---------- */

.bf-em-gold em { font-style: italic; color: var(--bf-gold-text); }

.elementor-widget.bf-ratio-34 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; }
.elementor-widget.bf-ratio-45 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.elementor-widget.bf-ratio-56 img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center; display: block; }

.elementor-widget.bf-ring { padding: 14px; }
.elementor-widget.bf-ring img {
	border: 1px solid var(--bf-gold);
	box-shadow: 0 0 0 8px var(--bf-mat, #fff), 0 0 0 9px var(--bf-gold), 0 0 0 13px var(--bf-mat, #fff), 0 0 0 14px var(--bf-gold);
}
.bf-mat-beige { --bf-mat: #F4ECDD; }
.bf-mat-ivory { --bf-mat: #FAF7F1; }
.bf-mat-white { --bf-mat: #FFFFFF; }

.elementor-widget.bf-inset img {
	border: 1px solid var(--bf-gold);
	box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--bf-gold), 0 0 0 13px var(--bf-mat, #F4ECDD);
}

.bf-offset-frame { position: relative; z-index: 0; }
.bf-offset-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--bf-gold);
	transform: translate(14px, -14px);
	z-index: -1;
	pointer-events: none;
}
.bf-offset-frame img { display: block; }

.bf-card .bf-zoom { overflow: hidden; }
.bf-card .bf-zoom img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.bf-card:hover .bf-zoom img { transform: scale(1.045); }
.bf-card .bf-card-title .elementor-heading-title,
.bf-card .bf-card-link .elementor-heading-title { transition: color .3s; }
.bf-card:hover .bf-card-title .elementor-heading-title,
.bf-card:hover .bf-card-link .elementor-heading-title { color: var(--bf-crimson); }

.bf-diamond-list .elementor-icon-list-icon i,
.bf-diamond-list .elementor-icon-list-icon svg { transform: rotate(45deg) scale(.72); }

.bf-contact a { color: inherit; text-decoration: underline; text-decoration-color: rgba(17, 17, 17, .3); text-underline-offset: 3px; transition: color .25s; }
.bf-contact a:hover { color: var(--bf-crimson); text-decoration-color: var(--bf-crimson); }

.bf-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	font: 700 12px/1.2 var(--bf-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	background-image: linear-gradient(var(--bf-crimson), var(--bf-crimson));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size .4s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s;
}
.bf-cta-btn--white { background-color: #fff; color: var(--bf-ink); border-color: #fff; }
.bf-cta-btn--gold { background-color: var(--bf-gold); color: var(--bf-ink); border-color: var(--bf-gold); }
.bf-cta-btn:hover,
.bf-cta-btn:focus-visible { background-size: 100% 100%; color: #fff; border-color: var(--bf-crimson); }

.elementor a:focus-visible,
.elementor button:focus-visible,
.elementor input:focus-visible,
.elementor select:focus-visible,
.elementor textarea:focus-visible,
.bfc a:focus-visible,
.bfc button:focus-visible { outline: 2px solid var(--bf-gold-deep); outline-offset: 3px; }
.bf-on-gold a:focus-visible,
.bf-on-gold button:focus-visible { outline-color: var(--bf-ink); }

/* Headings wrap into balanced lines. */
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title { text-wrap: balance; }

/* Home hero photos: 5:6 frame, main photo top right with an offset gold frame, inset photo bottom left. */
.e-con.bf-hero-media { position: relative; display: block; aspect-ratio: 5 / 6; padding: 0; }
.e-con.bf-hero-media > .elementor-widget.bf-hero-main,
.e-con.bf-hero-media > .elementor-widget.bf-hero-inset { position: absolute; margin: 0; max-width: none; background: var(--bf-beige); }
.e-con.bf-hero-media > .elementor-widget.bf-hero-main { top: 0; right: 0; width: 91.667%; height: 91.667%; z-index: 0; }
.e-con.bf-hero-media > .elementor-widget.bf-hero-inset { left: 0; bottom: 0; width: 41.667%; height: 41.667%; z-index: 1; }
.bf-hero-main::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--bf-gold);
	transform: translate(14px, -14px);
	z-index: -1;
	pointer-events: none;
}
.bf-hero-main > *, .bf-hero-inset > * { height: 100%; }
.elementor-widget.bf-hero-main img,
.elementor-widget.bf-hero-inset img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.elementor-widget.bf-hero-main img { object-position: center 20%; }
.elementor-widget.bf-hero-inset img {
	object-position: center 22%;
	border: 1px solid var(--bf-gold);
	box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--bf-gold), 0 0 0 13px var(--bf-beige);
}

/* Entrance for the hero text. */
@keyframes bf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bf-rise { animation: bf-rise .9s ease both; }

/* Cards (containers with bf-card): lift and soft crimson shadow on hover. */
.e-con.bf-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.e-con.bf-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -30px rgba(114, 6, 33, .45); }

/* Buttons with bf-sweep: crimson fills from the left on hover. */
.bf-sweep .elementor-button {
	background-image: linear-gradient(var(--bf-crimson), var(--bf-crimson));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size .4s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s, background-color 0s;
}
.bf-sweep .elementor-button:hover,
.bf-sweep .elementor-button:focus-visible {
	background-size: 100% 100%;
	transition: background-size .4s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s, background-color 0s .4s;
}

/* Text links styled as buttons. */
.bf-tlink .elementor-button { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(17, 17, 17, .35); transition: color .25s, text-decoration-color .25s; }
.bf-tlink .elementor-button:hover,
.bf-tlink .elementor-button:focus-visible { text-decoration-color: var(--bf-crimson); }
.bf-arrow-link .elementor-button { transition: color .25s, letter-spacing .25s; }
.bf-arrow-link .elementor-button:hover { letter-spacing: .2em; }

/* Header menu toggle (tablet and phone): square gold-edged button. */
.bf-nav .elementor-menu-toggle { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-color: var(--bf-gold); }
.bf-nav .elementor-menu-toggle:hover { border-color: var(--bf-crimson); }

/* Footer link lists. */
.bf-slide-links .elementor-icon-list-item a { transition: color .25s, padding-left .25s; }
.bf-slide-links .elementor-icon-list-item a:hover { padding-left: 6px; }

/* Gold panel with a thin inner white frame. */
.e-con.bf-inner-frame { outline: 1px solid rgba(255, 255, 255, .75); outline-offset: -9px; }

/* Contact details: anything that depends on a detail not yet saved in Settings > Bardia Fashion stays hidden. */
body.bf-wa-off .bf-show-wa,
body.bf-wa-on .bf-hide-wa,
body.bf-no-phone .bf-needs-phone,
body.bf-no-email .bf-needs-email,
body.bf-no-instagram .bf-needs-instagram,
body.bf-no-hours .bf-needs-hours,
body.bf-no-maps .bf-needs-maps { display: none !important; }
.bf-contact-lines p:empty { display: none; }
.bf-contact-lines p { margin: 0 0 6px; }
.bf-contact-value p { margin: 0; }
.elementor-widget-text-editor .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Designs catalogue ([bf_catalogue] and [bf_featured]) ---------- */

.bfc { font-family: var(--bf-sans); color: var(--bf-ink); }
.bfc *, .bfc *::before, .bfc *::after { box-sizing: border-box; }

.bfc .bfc-controls { display: flex; flex-direction: column; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--bf-champ); margin-bottom: 36px; }
.bfc .bfc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bfc .bfc-chip {
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--bf-gold);
	border-radius: 0;
	background: #fff;
	color: var(--bf-ink);
	font: 700 13px/1.2 var(--bf-sans);
	letter-spacing: .04em;
	white-space: normal;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s;
}
.bfc .bfc-chip:hover,
.bfc .bfc-chip:focus { background: #fff; border-color: var(--bf-crimson); color: var(--bf-crimson); }
.bfc .bfc-chip.is-active { background: var(--bf-gold); border-color: var(--bf-gold); color: var(--bf-ink); }
.bfc .bfc-chip.is-active:hover { background: var(--bf-gold); color: var(--bf-crimson); border-color: var(--bf-crimson); }

.bfc .bfc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.bfc .bfc-field { display: flex; flex-direction: column; gap: 6px; }
.bfc .bfc-field--search { flex: 1 1 320px; max-width: 520px; }
.bfc .bfc-field label { font: 700 11px/1.3 var(--bf-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bf-muted); }
.bfc .bfc-input {
	height: 50px;
	padding: 0 14px;
	border: 1px solid var(--bf-line);
	border-radius: 0;
	background-color: #fff;
	color: var(--bf-ink);
	font: 400 15px/1.2 var(--bf-sans);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.bfc .bfc-q {
	width: 100%;
	padding-left: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23745812' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
	background-size: 18px 18px;
}
.bfc .bfc-sort { min-width: 200px; }
.bfc .bfc-input:focus { outline: none; border-color: var(--bf-gold-deep); box-shadow: 0 0 0 3px rgba(201, 168, 76, .35); }
.bfc .bfc-count { margin: 0; font-size: 13px; color: var(--bf-muted); }

.bfc .bfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.bfc.bfc--featured .bfc-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.bfc .bfc-grid[hidden] { display: none; }

.bfc .bfc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bf-champ);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.bfc .bfc-card[hidden] { display: none; }
.bfc .bfc-card:hover { transform: translateY(-4px); border-color: var(--bf-crimson); box-shadow: 0 20px 40px -30px rgba(114, 6, 33, .45); }

.bfc .bfc-media {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--bf-beige);
	cursor: pointer;
}
.bfc .bfc-media:hover,
.bfc .bfc-media:focus { background: var(--bf-beige); }
.bfc .bfc-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.bfc .bfc-img--empty { background: var(--bf-beige); }
.bfc .bfc-card:hover .bfc-img { transform: scale(1.045); }

.bfc .bfc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bfc .bfc-meta { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.4 var(--bf-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bf-muted); }
.bfc .bfc-code { color: var(--bf-gold-deep); font-weight: 700; }
.bfc .bfc-title { margin: 0; font: 600 23px/1.15 var(--bf-display); color: var(--bf-ink); transition: color .3s; }
.bfc .bfc-card:hover .bfc-title { color: var(--bf-crimson); }
.bfc .bfc-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--bf-muted); }
.bfc .bfc-price { margin: 4px 0 0; font: 700 12px/1.4 var(--bf-sans); letter-spacing: .06em; color: var(--bf-gold-deep); }
.bfc .bfc-actions { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.bfc .bfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 8px;
	border-radius: 0;
	font: 700 11px/1.2 var(--bf-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	background-image: linear-gradient(var(--bf-crimson), var(--bf-crimson));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size .4s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s;
}
.bfc .bfc-btn--gold { background-color: var(--bf-gold); color: var(--bf-ink); border: 1px solid var(--bf-gold); }
.bfc .bfc-btn--line { background-color: #fff; color: var(--bf-ink); border: 1px solid var(--bf-line); }
.bfc .bfc-btn:hover,
.bfc .bfc-btn:focus-visible { background-size: 100% 100%; color: #fff; border-color: var(--bf-crimson); }
.bfc .bfc-btn--gold:hover { background-color: var(--bf-gold); }
.bfc .bfc-btn--line:hover { background-color: #fff; }

.bfc .bfc-empty { border: 1px solid var(--bf-champ); background: #fff; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.bfc .bfc-empty[hidden] { display: none; }
.bfc .bfc-empty h3 { margin: 0; font: 500 30px/1.1 var(--bf-display); color: var(--bf-ink); }
.bfc .bfc-empty p { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--bf-muted); }
.bfc .bfc-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.bfc .bfc-empty-actions .bfc-btn { padding: 14px 22px; font-size: 12px; }

/* Detail view */
.bfc .bfc-modal {
	width: min(1080px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 1px solid var(--bf-gold);
	background: #fff;
	color: var(--bf-ink);
	box-shadow: 0 30px 80px -40px rgba(116, 88, 18, .55);
}
.bfc .bfc-modal::backdrop { background: rgba(244, 236, 221, .92); }
.bfc .bfc-modal-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.bfc .bfc-modal-media { padding: 24px; background: var(--bf-beige); display: flex; flex-direction: column; gap: 12px; }
.bfc .bfc-modal-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bf-beige); }
.bfc .bfc-modal-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bfc .bfc-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bfc .bfc-thumbs[hidden] { display: none; }
.bfc .bfc-thumb { aspect-ratio: 1 / 1; padding: 0; margin: 0; overflow: hidden; border: 2px solid transparent; border-radius: 0; background: var(--bf-beige); cursor: pointer; transition: border-color .25s; }
.bfc .bfc-thumb.is-active { border-color: var(--bf-gold-deep); }
.bfc .bfc-thumb:hover,
.bfc .bfc-thumb:focus { border-color: var(--bf-crimson); background: var(--bf-beige); }
.bfc .bfc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bfc .bfc-modal-info { padding: 32px 32px 36px; display: flex; flex-direction: column; gap: 16px; }
.bfc .bfc-modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bfc .bfc-back { padding: 10px 0; border: 0; border-radius: 0; background: none; font: 700 12px/1.2 var(--bf-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bf-gold-deep); cursor: pointer; transition: color .25s; }
.bfc .bfc-back:hover,
.bfc .bfc-back:focus { background: none; color: var(--bf-crimson); }
.bfc .bfc-x { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bf-gold); border-radius: 0; background: transparent; color: var(--bf-ink); cursor: pointer; transition: border-color .25s, color .25s; }
.bfc .bfc-x:hover,
.bfc .bfc-x:focus { background: transparent; border-color: var(--bf-crimson); color: var(--bf-crimson); }
.bfc .bfc-modal .bfc-meta { justify-content: flex-start; gap: 14px; }
.bfc .bfc-modal-title { margin: 0; font: 500 42px/1.05 var(--bf-display); color: var(--bf-ink); }
.bfc .bfc-modal-desc { margin: 0; font-size: 15px; line-height: 1.7; color: var(--bf-body); }
.bfc .bfc-specs { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--bf-champ); font-size: 14px; }
.bfc .bfc-specs dt { margin: 0; padding: 12px 24px 12px 0; border-bottom: 1px solid var(--bf-champ); font-weight: 700; color: var(--bf-ink); }
.bfc .bfc-specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bf-champ); color: var(--bf-ink); }
.bfc .bfc-specs dd.is-empty { color: var(--bf-muted); }
.bfc .bfc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.bfc .bfc-modal-actions .bfc-btn { flex: 1 1 200px; padding: 16px 20px; font-size: 12px; }
html.bfc-lock { overflow: hidden; }

@media (max-width: 640px) {
	.bfc .bfc-modal-info { padding: 24px 20px 28px; }
	.bfc .bfc-modal-title { font-size: 34px; }
	.bfc .bfc-sort { min-width: 0; width: 100%; }
	.bfc .bfc-field { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.bfc *, .bfc .bfc-card, .bf-card, .bf-card *, .bf-cta-btn, .bf-sweep .elementor-button, .bf-rise { transition: none !important; animation: none !important; }
	.e-con.bf-card:hover, .bfc .bfc-card:hover { transform: none; }
}
