/* HavenWallArt Product Page Enhancer — only styles the blocks it adds. */
body.hwa-pp-active { overflow-x: clip; }

.hwa-sec { color: var(--hwa-text); font-size: 16px; line-height: 1.6; clear: both; }
.hwa-sec *, .hwa-sec *::before, .hwa-sec *::after { box-sizing: border-box; }
.hwa-sec h2, .hwa-sec h3 { font-weight: 500; line-height: 1.15; color: inherit; margin: 0; }
.hwa-sec .hwa-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hwa-sec .hwa-ico { width: 24px; height: 24px; flex: none; }
.hwa-sec .hwa-eyebrow { display: block; font-style: italic; color: var(--hwa-accent); font-size: 15px; margin-bottom: 10px; }

/* Full-width breakout when the theme wraps content in a narrow container */
.hwa-sec.hwa-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-right: -50vw; max-width: 100vw; }

/* ---------- Trust badges (matches the theme's "Shipping & Return" box) ---------- */
.hwa-badges { list-style: none; margin: 20px 0 0; padding: 16px 18px; border: 1px solid #e3dcd4; border-radius: 4px; background: #fff; display: grid; gap: 14px; }
.hwa-badges li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 0; }
.hwa-badges li::before { display: none; }
.hwa-badges__icon { color: var(--hwa-accent); display: inline-flex; margin-top: 2px; }
.hwa-badges strong { display: block; font-size: 15px; }
.hwa-badges small { display: block; color: #666; font-size: 13px; line-height: 1.45; }

/* ---------- Option buttons (replace dropdowns) ---------- */
.hwa-pp-active select.hwa-select-hidden { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.hwa-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; }
.hwa-sw {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	background: #fff; color: var(--hwa-text); border: 1px solid #d9d2cb; border-radius: 4px;
	padding: 9px 14px; font-size: 14px; line-height: 1.2; transition: border-color .15s, box-shadow .15s;
}
.hwa-sw:hover { border-color: var(--hwa-accent); }
.hwa-sw.is-active { border-color: var(--hwa-accent); box-shadow: 0 0 0 1px var(--hwa-accent); font-weight: 600; }
.hwa-sw:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.hwa-sw__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }

/* ---------- Quantity buttons ---------- */
.quantity.hwa-qty-ready { display: inline-flex; align-items: stretch; }
.hwa-qty-btn { width: 38px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--hwa-text); padding: 0; }
.hwa-qty-btn:hover { background: rgba(0,0,0,.06); }

/* ---------- Craft (dark) ---------- */
.hwa-craft { background: var(--hwa-dark); color: #fff; padding: 88px 0; margin-top: 64px; }
.hwa-craft__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hwa-craft h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 18px; }
.hwa-craft__intro { color: rgba(255,255,255,.72); margin: 0 0 28px; max-width: 560px; }
.hwa-craft__box { display: flex; gap: 16px; padding: 18px 20px; margin-bottom: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; }
.hwa-craft__ico { color: var(--hwa-accent); margin-top: 2px; }
.hwa-craft__box h3 { font-size: 20px; margin-bottom: 4px; }
.hwa-craft__box p { margin: 0; color: rgba(255,255,255,.7); font-size: 14.5px; }
.hwa-craft__media img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid rgba(255,255,255,.12); }

/* ---------- Specs ---------- */
.hwa-specs { background: var(--hwa-beige); padding: 80px 0; }
.hwa-specs__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.hwa-specs h2 { font-size: clamp(28px, 3vw, 38px); }
.hwa-specs__list { margin: 0; background: #fff; border-radius: 4px; padding: 6px 24px; }
.hwa-specs__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eee5dc; }
.hwa-specs__row:last-child { border-bottom: 0; }
.hwa-specs dt { font-weight: 600; font-size: 14px; letter-spacing: .03em; margin: 0; }
.hwa-specs dd { margin: 0; color: #555; }

/* ---------- Care ---------- */
.hwa-care { padding: 88px 0; text-align: center; background: #fff; }
.hwa-care h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 36px; }
.hwa-care__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
.hwa-care__card { background: var(--hwa-beige); padding: 32px; border-radius: 4px; }
.hwa-care__ico { color: var(--hwa-accent); display: inline-flex; margin-bottom: 14px; }
.hwa-care__card h3 { font-size: 24px; margin-bottom: 8px; }
.hwa-care__card p { margin: 0; color: #555; }

/* ---------- FAQ ---------- */
.hwa-faq { padding: 64px 0 72px; }
.hwa-faq__inner { text-align: center; max-width: 880px; }
.hwa-faq h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 32px; }
.hwa-faq__list { text-align: left; border-top: 1px solid #e5ddd5; }
.hwa-faq__item { border-bottom: 1px solid #e5ddd5; }
.hwa-faq__item summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hwa-faq__item summary::-webkit-details-marker { display: none; }
.hwa-faq__plus { color: var(--hwa-accent); transition: transform .2s; display: inline-flex; }
.hwa-faq__item[open] .hwa-faq__plus { transform: rotate(45deg); }
.hwa-faq__item p { margin: 0 0 20px; color: #555; max-width: 760px; }

/* ---------- Sticky bar (mobile only) ---------- */
.hwa-sticky { display: none; }

@media (max-width: 1024px) {
	.hwa-craft__grid { grid-template-columns: 1fr; gap: 40px; }
	.hwa-specs__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
	.hwa-sec .hwa-wrap { padding: 0 18px; }
	.hwa-craft, .hwa-specs, .hwa-care { padding: 56px 0; }
	.hwa-care__grid { grid-template-columns: 1fr; }
	.hwa-specs__row { grid-template-columns: 1fr; gap: 2px; }
	body.hwa-pp-active { padding-bottom: 76px; }
	.hwa-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff; border-top: 1px solid #e5ddd5; box-shadow: 0 -6px 24px rgba(0,0,0,.08);
		transform: translateY(110%); transition: transform .25s ease;
	}
	.hwa-sticky.is-visible { transform: translateY(0); }
	.hwa-sticky__info { min-width: 0; display: grid; color: var(--hwa-text); }
	.hwa-sticky__info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hwa-sticky__info span { font-size: 13px; color: #555; }
	.hwa-sticky__btn { flex: none; background: var(--hwa-accent); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
}
