/*
Theme Name: Lingerie Galleria
Theme URI: https://lingeriegalleria.com
Author: Riz
Description: A boxed, editorial lingerie magazine theme with a worldwide bra size calculator, an affiliate-ready Brands directory, a Pink Ribbon section for breast cancer survivors, and a full lingerie category structure created on activation. Built for Elementor: ships custom Elementor widgets and builds the home, calculator and Pink Ribbon pages in Elementor.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lingerie-galleria
Tags: blog, e-commerce, boxed, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #2e1a2b;
	--ink-soft: #5b4657;
	--rose: #b4436c;
	--rose-deep: #8f2f53;
	--blush: #f3d5dc;
	--blush-soft: #faecef;
	--champagne: #c9a46a;
	--petal: #f6e7ea;
	--paper: #fffdfd;
	--line: #ecdde1;
	--ribbon: #e8a3b6;

	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--box: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius-btn: 4px; /* buttons, inputs, chips: kept nearly square */
	--radius-sm: 4px;
	--radius: 6px;
	--shadow-box: 0 30px 80px -40px rgba(46, 26, 43, .35);
	--step--1: .875rem;
	--step-0: 1rem;
	--step-1: 1.25rem;
	--step-2: 1.6rem;
	--step-3: 2.1rem;
	--step-4: clamp(2.2rem, 4.4vw, 3.4rem);
	--step-5: clamp(2.6rem, 6vw, 4.6rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--petal);
	/* faint lace-dot backdrop outside the box */
	background-image:
		radial-gradient(circle at 1px 1px, rgba(180, 67, 108, .12) 1px, transparent 1.5px),
		radial-gradient(circle at 11px 11px, rgba(201, 164, 106, .14) 1px, transparent 1.5px);
	background-size: 20px 20px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Boxed shell ---------- */
.site {
	max-width: var(--box);
	margin: 0 auto;
	background: var(--paper);
	box-shadow: var(--shadow-box);
	min-height: 100vh;
}
@media (min-width: 1300px) { .site { margin: 28px auto; border-radius: 2px; } }
.wrap { padding-inline: var(--gutter); }
.narrow { max-width: 720px; margin-inline: auto; }

/* ---------- Signature: scalloped lace edge ---------- */
.lace-edge { position: relative; }
.lace-edge::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: -13px; height: 14px;
	background: radial-gradient(circle at 10px 0, var(--lace-color, var(--blush-soft)) 9.5px, transparent 10.5px) repeat-x;
	background-size: 20px 14px;
	pointer-events: none;
	z-index: 2;
}

/* ---------- Top bar & header ---------- */
.topbar {
	background: var(--ink); color: #f5e9ec;
	font-size: var(--step--1); text-align: center;
	padding: 8px var(--gutter);
}
.topbar a { color: #fff; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: 16px; padding: 26px var(--gutter) 18px;
}
.masthead__left, .masthead__right { display: flex; gap: 14px; align-items: center; font-size: var(--step--1); }
.masthead__right { justify-content: flex-end; }
.site-title { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 400; letter-spacing: .02em; line-height: 1; text-align: center; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-description { margin: 6px 0 0; text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: .98rem; }
.custom-logo { max-height: 80px; width: auto; margin: 0 auto; }
.header-search { position: relative; }
.header-search input[type="search"] {
	border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 8px 14px; font: inherit; font-size: var(--step--1);
	width: 230px; background: var(--blush-soft); color: var(--ink);
}
.header-cta { background: var(--rose); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: var(--radius-btn); font-weight: 500; }
.header-cta:hover { background: var(--rose-deep); color: #fff; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .wrap > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 24px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 14px 2px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--rose); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 240px; z-index: 50;
	background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--rose);
	padding: 8px 0; display: none; box-shadow: 0 18px 40px -24px rgba(46,26,43,.4);
}
.main-nav .sub-menu a { padding: 8px 18px; font-weight: 400; }
.main-nav .sub-menu .sub-menu { left: 100%; top: -9px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav li.lg-ribbon-item > a { color: var(--rose-deep); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
	.masthead { grid-template-columns: auto 1fr auto; padding-block: 16px; }
	.masthead__left .header-search, .masthead__right .header-cta { display: none; }
	.site-title { font-size: 1.8rem; }
	.site-description { display: none; }
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
		border-radius: var(--radius-btn); padding: 7px 14px; font: inherit; font-size: var(--step--1); color: var(--ink); cursor: pointer;
	}
	.main-nav { display: none; }
	.main-nav.is-open { display: block; }
	.main-nav > .wrap > ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.main-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.main-nav .sub-menu a { padding: 9px 0; }
	.main-nav .menu-item-has-children > a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--radius-btn); font-weight: 500; font-size: .98rem;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--rose); color: #fff; }
.btn--primary:hover { background: var(--rose-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 8px 16px; font-size: var(--step--1); }

/* ---------- Home: hero ---------- */
.hero { --lace-color: var(--blush-soft); background: var(--blush-soft); margin-bottom: 13px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 540px; }
.hero__media { position: relative; overflow: hidden; background: var(--blush); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--empty {
	background:
		radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.7), transparent 55%),
		linear-gradient(135deg, #f3d5dc 0%, #e8b6c4 55%, #c98aa0 100%);
}
.hero__body { padding: clamp(32px, 6vw, 72px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero__kicker { font-family: var(--serif); font-style: italic; color: var(--rose-deep); font-size: 1.15rem; margin-bottom: 14px; }
.hero h1 { font-size: var(--step-5); font-weight: 400; margin-bottom: 20px; }
.hero__lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero__note { margin-top: 28px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { min-height: 300px; } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--blush-soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 58ch; }
.section__link { font-weight: 500; white-space: nowrap; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-tile { position: relative; display: block; text-decoration: none; color: var(--ink); }
.cat-tile__img { aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--blush); }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover .cat-tile__img img { transform: scale(1.04); }
.cat-tile__img--empty { display: grid; place-items: center; }
.cat-tile__img--empty span { font-family: var(--serif); font-size: 3.4rem; color: rgba(143, 47, 83, .35); font-style: italic; }
.cat-tile h3 { font-size: 1.2rem; margin: 12px 0 2px; }
.cat-tile p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Bra calculator ---------- */
.calc-band { background: var(--ink); color: #f6eaee; }
.calc-band h2, .calc-band h3 { color: #fff; }
.calc-band .section__head p { color: #d9c6cf; }
.tape {
	height: 34px; border-radius: 3px; margin-bottom: 34px;
	background-color: var(--champagne);
	background-image:
		repeating-linear-gradient(90deg, rgba(46,26,43,.75) 0 1px, transparent 1px 10px),
		repeating-linear-gradient(90deg, rgba(46,26,43,.9) 0 1.5px, transparent 1.5px 50px),
		repeating-linear-gradient(90deg, rgba(46,26,43,.9) 0 2px, transparent 2px 100px);
	background-size: 100% 9px, 100% 15px, 100% 22px;
	background-repeat: no-repeat;
	background-position: 0 0, 0 0, 0 0;
}
.lg-calc { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lg-calc__form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px; }
.lg-calc__form h3 { color: var(--ink); font-size: 1.4rem; }
.lg-calc fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.lg-calc legend, .lg-calc label { font-weight: 500; font-size: .95rem; display: block; margin-bottom: 6px; }
.lg-calc .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.lg-calc input[type="number"] {
	width: 100%; font: inherit; font-size: 1.1rem; padding: 11px 14px;
	border: 1px solid #d9c5cc; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.lg-calc .field { margin-bottom: 16px; }
.unit-toggle { display: inline-flex; border: 1px solid #d9c5cc; border-radius: var(--radius-btn); padding: 3px; }
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.unit-toggle label { margin: 0; padding: 6px 16px; border-radius: var(--radius-btn); cursor: pointer; font-size: .9rem; }
.unit-toggle input:checked + label { background: var(--ink); color: #fff; }
.unit-toggle input:focus-visible + label { outline: 2px solid var(--rose); outline-offset: 2px; }
.lg-calc__error { color: var(--rose-deep); font-size: .9rem; min-height: 1.2em; margin: 4px 0 10px; }
.lg-calc__results { min-height: 100%; }
.lg-calc__placeholder { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: #e6d3db; max-width: 30ch; }
.lg-calc__headline { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; margin: 0 0 6px; color: #fff; }
.lg-calc__sub { color: #d9c6cf; margin-bottom: 22px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.size-table th, .size-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.size-table th { font-weight: 500; color: #d9c6cf; }
.size-table td:last-child { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.sister { margin-top: 22px; font-size: .95rem; color: #e6d3db; }
.sister strong { color: #fff; font-weight: 500; }
.calc-note { font-size: .86rem; color: #cbb5bf; margin-top: 18px; }
/* calculator on a light page */
.lg-calc--light .lg-calc__results { background: var(--ink); color: #f6eaee; border-radius: var(--radius); padding: 26px; }
.lg-calc--light .lg-calc__form { border: 1px solid var(--line); }
@media (max-width: 820px) { .lg-calc { grid-template-columns: 1fr; } }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.post-grid--feature { grid-template-columns: 1.4fr 1fr 1fr; }
.post-grid--feature .card:first-child { grid-row: span 2; }
.post-grid--feature .card:first-child .card__title { font-size: 1.9rem; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--blush); margin-bottom: 14px; }
.post-grid--feature .card:first-child .card__media { aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__cat { font-size: .82rem; font-weight: 500; color: var(--rose); text-decoration: none; }
.card__title { font-size: 1.3rem; margin: 6px 0 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--rose-deep); }
.card__excerpt { font-size: .95rem; color: var(--ink-soft); margin: 0 0 8px; }
.card__meta { font-size: .82rem; color: var(--ink-soft); margin-top: auto; }
@media (max-width: 960px) { .post-grid, .post-grid--feature { grid-template-columns: 1fr 1fr; } .post-grid--feature .card:first-child { grid-row: auto; grid-column: span 2; } }
@media (max-width: 600px) { .post-grid, .post-grid--feature { grid-template-columns: 1fr; } .post-grid--feature .card:first-child { grid-column: auto; } }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.brand-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .brand-grid--3 { grid-template-columns: 1fr; } }
.ribbon-brands { margin: 56px 0 20px; }
.ribbon-brands h2 { margin-bottom: 22px; }
.brand-card {
	border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper);
	display: flex; flex-direction: column; gap: 8px;
}
.brand-card__logo { height: 64px; display: flex; align-items: center; }
.brand-card__logo img { max-height: 56px; width: auto; }
.brand-card__wordmark { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; padding: 3px 10px; border-radius: 3px; background: var(--blush-soft); color: var(--rose-deep); text-decoration: none; }
.brand-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.brand-card__facts { font-size: .84rem; color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.brand-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.brand-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-filter a { padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); text-decoration: none; color: var(--ink); font-size: .9rem; }
.brand-filter a.is-active, .brand-filter a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.brand-hero { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.brand-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.brand-box dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.brand-box dt { color: var(--ink-soft); }
.brand-box dd { margin: 0; }
@media (max-width: 860px) { .brand-hero { grid-template-columns: 1fr; } .brand-box { position: static; } }

/* ---------- Pink Ribbon ---------- */
.ribbon-band { --lace-color: #fbeff2; background: #fbeff2; margin-bottom: 13px; }
.ribbon-band__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ribbon-mark { width: 54px; height: 72px; margin-bottom: 16px; }
.ribbon-band h2 { font-weight: 400; }
.ribbon-band blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); border-left: 2px solid var(--ribbon); padding-left: 18px; }
.ribbon-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid #efd3db; }
.ribbon-links li { border-bottom: 1px solid #efd3db; }
.ribbon-links a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px; text-decoration: none; color: var(--ink); }
.ribbon-links a span { color: var(--ink-soft); font-size: .9rem; }
.ribbon-links a:hover strong { color: var(--rose-deep); }
.ribbon-links strong { font-weight: 500; font-family: var(--serif); font-size: 1.2rem; }
.resource-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.resource-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.resource-list a { text-decoration: none; color: var(--ink); }
.resource-list a:hover strong { color: var(--rose-deep); }
.resource-list strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.resource-list span { font-size: .9rem; color: var(--ink-soft); }
.gentle-note { background: var(--blush-soft); border-radius: var(--radius); padding: 18px 22px; font-size: .95rem; }
@media (max-width: 860px) { .ribbon-band__grid { grid-template-columns: 1fr; } }

/* ---------- Researcher's desk ---------- */
.desk { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.desk__portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blush); max-width: 300px; }
.desk__portrait img { width: 100%; height: 100%; object-fit: cover; }
.desk h2 { font-weight: 400; }
.desk__sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--rose-deep); }
@media (max-width: 780px) { .desk { grid-template-columns: 1fr; } .desk__portrait { max-width: 180px; } }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter h2 { font-weight: 400; }
.newsletter p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.newsletter input[type="email"] { min-width: min(340px, 100%); padding: 13px 18px; border: 1px solid #d9c5cc; border-radius: var(--radius-btn); font: inherit; }

/* ---------- Single / page content ---------- */
.entry-header { padding-top: clamp(36px, 6vw, 64px); text-align: center; }
.entry-header .card__cat { font-size: .92rem; }
.entry-title { font-size: var(--step-4); font-weight: 400; max-width: 22ch; margin: 10px auto 14px; }
.entry-meta { font-size: .9rem; color: var(--ink-soft); }
.entry-hero { margin: 36px auto 0; max-width: 1040px; }
.entry-hero img { border-radius: var(--radius-sm); width: 100%; }
.entry-content { font-size: 1.08rem; line-height: 1.75; padding-block: 40px 20px; }
.entry-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--champagne); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content .wp-block-button__link { background: var(--rose); border-radius: var(--radius-btn); }
.affiliate-notice { font-size: .86rem; color: var(--ink-soft); background: var(--blush-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: 24px 0 0; }
.product-pick {
	display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 28px 0;
}
.product-pick img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.product-pick h4 { margin: 0 0 4px; font-size: 1.25rem; }
.product-pick p { margin: 0 0 10px; font-size: .95rem; color: var(--ink-soft); }
.product-pick__price { font-weight: 500; color: var(--ink); }
@media (max-width: 520px) { .product-pick { grid-template-columns: 1fr; } }
.author-box { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 20px 0 40px; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 50px; }
.post-nav a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.post-nav span { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
.post-nav .next { text-align: right; }
.tags-line { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Archive ---------- */
.archive-header { padding-block: clamp(40px, 6vw, 70px) 30px; text-align: center; --lace-color: var(--blush-soft); background: var(--blush-soft); margin-bottom: 50px; }
.archive-header h1 { font-weight: 400; margin-bottom: 10px; }
.archive-header p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.archive-header--ribbon { background: #fbeff2; --lace-color: #fbeff2; }
.subcats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.subcats a { padding: 6px 14px; border-radius: var(--radius-btn); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.subcats a:hover { border-color: var(--rose); color: var(--rose); }
.layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }
.pagination { margin: 50px 0 70px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: var(--radius-btn); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Sidebar widgets ---------- */
.widget { margin-bottom: 36px; }
.widget-title, .widget h2 { font-size: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.widget a { color: var(--ink); text-decoration: none; }
.widget a:hover { color: var(--rose); }
.widget--calc { background: var(--ink); color: #f6eaee; padding: 22px; border-radius: var(--radius); }
.widget--calc h2 { color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- Comments ---------- */
.comments-area { padding-bottom: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid #d9c5cc; border-radius: var(--radius-sm); font: inherit;
}
.comment-form .submit { background: var(--rose); color: #fff; border: 0; padding: 12px 24px; border-radius: var(--radius-btn); font: inherit; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dcc8d1; font-size: .95rem; }
.site-footer a { color: #f6eaee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 60px 40px; }
.footer-brand .site-title { text-align: left; font-size: 2rem; margin-bottom: 14px; }
.footer-brand .site-title a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-disclosure { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; font-size: .84rem; color: #bda8b3; }
.footer-disclosure p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WP core ---------- */
.alignwide { margin-inline: calc(-1 * min(8vw, 120px)); }
.alignfull { margin-inline: calc(-1 * var(--gutter)); }
.wp-caption-text, figcaption { font-size: .86rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.sticky .card__title::before { content: "Featured: "; color: var(--rose); font-family: var(--sans); font-size: .8rem; }
.bypostauthor { }
.gallery-caption { }
.no-results { padding: 60px 0; text-align: center; }

/* ---------- Elementor ---------- */
/* Theme widgets sit inside Elementor containers: drop the article spacing
   they carry on normal pages, and keep images filling their frames. */
.elementor .lg-faq.entry-content,
.elementor .lg-size-charts.entry-content { padding-block: 0; font-size: 1rem; }
.elementor .lg-faq h3:first-child,
.elementor .lg-size-charts h2:first-child { margin-top: 0; }
.elementor .cat-tile__img img,
.elementor .card__media img,
.elementor .hero__media img { height: 100%; width: 100%; object-fit: cover; border-radius: 0; }
.elementor .brand-card__logo img { height: auto; }
.elementor .post-grid--feature .card:first-child .card__media img { height: 100%; }
.elementor .cat-grid,
.elementor .brand-grid,
.elementor .resource-list { margin: 0; }
.elementor-widget-text-editor p:last-child,
.elementor-widget-text-editor ol:last-child,
.elementor-widget-text-editor ul:last-child,
.elementor-widget-text-editor blockquote:last-child { margin-bottom: 0; }
.elementor-widget-text-editor ol,
.elementor-widget-text-editor ul { padding-left: 1.3em; }
.elementor-widget-text-editor li { margin-bottom: .45em; }
.elementor .ribbon-band blockquote,
.elementor .elementor-widget-text-editor blockquote {
	margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45;
	border-left: 2px solid var(--ribbon); padding-left: 18px; color: var(--ink);
}
.elementor .calc-band { background: transparent; }
.elementor .newsletter form { margin-top: 0; }
.elementor-widget-heading .elementor-heading-title { text-wrap: balance; }
.elementor .ribbon-mark { display: inline-block; }
.lg-hero.e-con { overflow: visible; }
/* Lace edge must sit above the next container. */
.e-con.lace-edge { position: relative; z-index: 1; }
/* Buttons: nearly square everywhere, including Elementor's own. */
.elementor-button { border-radius: var(--radius-btn); }
/* Elementor's Site Settings button style targets every <button> on the
   site; keep the theme's own small controls looking like themselves. */
.site-header .menu-toggle,
.site-header .menu-toggle:hover,
.site-header .menu-toggle:focus {
	background: none; color: var(--ink); border: 1px solid var(--line);
	padding: 7px 14px; font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
	border-radius: var(--radius-btn); box-shadow: none; text-transform: none; letter-spacing: 0;
}
