/* StickDecor homepage 2027 — mobile first. Brand kept: blue #4DAAD5 (accent), its deep shade #256E8E for buttons and links
   (white on #4DAAD5 is 2.6:1, below WCAG AA; on #256E8E it is 5.6:1), ink #0F0F10, warm cream / mint soft grounds, system font. */
.sd-home27 { --h-brand: #4DAAD5; --h-ink-blue: #256E8E; --h-ink-blue-h: #1F5E79; --h-soft-blue: #EAF5FB;
	--h-ink: #0F0F10; --h-text: #18181B; --h-muted: #5B616B; --h-line: #E5E7EB; --h-soft: #F6F7F8; --h-cream: #F5F3EF;
	--h-mint: #F0F7F5; --h-star: #F5A623; --h-r: 16px; --h-r-lg: 22px; }
.h27 { color: var(--h-text); }
.h27 *, .h27 *::before, .h27 *::after { box-sizing: border-box; }
/* resets at element specificity (:where drops the .h27 part): they beat the theme's element rules (loaded earlier) and lose to every class rule below */
:where(.h27) ul, :where(.h27) ol { list-style: none; margin: 0; padding: 0; }
:where(.h27) h1, :where(.h27) h2, :where(.h27) h3, :where(.h27) p { margin: 0; }
:where(.h27) a { color: inherit; }
:where(.h27) img { max-width: 100%; display: block; }
:where(.h27) img:not([class]) { height: auto; }
.h27-wrap { width: 100%; max-width: 1272px; margin: 0 auto; padding-inline: 16px; }
.h27-wrap--narrow { max-width: 820px; }
.h27-sec { padding-block: 22px; }
.h27-h2 { font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--h-ink); letter-spacing: -.2px; text-wrap: balance; }
.h27-h2--sm { font-size: 17px; }
.h27-h3 { font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--h-ink); }
.h27-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; margin-bottom: 8px; }
.h27-head--sub { margin-top: 24px; }
.h27-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--h-ink-blue) !important; text-decoration: none; white-space: nowrap; min-height: 44px; }
.h27-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.h27-more--row { margin-top: 6px; }
.h27-arr { width: 16px; height: 16px; flex: none; }
.h27-link { color: var(--h-ink-blue) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.h27 :focus-visible { outline: 3px solid var(--h-brand); outline-offset: 2px; border-radius: 8px; }

/* buttons */
.h27-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
	border-radius: 999px; font-size: 16px; font-weight: 800; text-decoration: none !important; border: 2px solid transparent;
	transition: background-color .15s, border-color .15s; white-space: nowrap; }
.h27-btn--main { background: var(--h-ink-blue); color: #fff !important; }
.h27-btn--main:hover { background: var(--h-ink-blue-h); }
.h27-btn--light { background: #fff; color: var(--h-ink) !important; border-color: var(--h-line); }
.h27-btn--light:hover { border-color: var(--h-ink); }
.h27-btn--ghost { background: #fff; color: var(--h-ink) !important; border-color: var(--h-line); font-size: 15px; min-height: 44px; }
.h27-btn--ghost:hover { border-color: var(--h-ink-blue); color: var(--h-ink-blue) !important; }

/* 1. first screen: title + proof, two photo doors, theme chips, trust strip */
.h27-top { padding-top: 14px; background: linear-gradient(180deg, var(--h-soft-blue) 0, #fff 260px); }
.h27-top__intro { padding-bottom: 12px; }
.h27-top h1 { font-size: 24px; line-height: 1.2; font-weight: 900; color: var(--h-ink); letter-spacing: -.3px; text-wrap: balance; }
.h27-top h1 em { display: block; font-style: normal; color: var(--h-ink-blue); font-size: .82em; font-weight: 800; margin-top: 2px; }
.h27-top__lead { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--h-muted); }
.h27-top__proof { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 4px; font-size: 13.5px; color: var(--h-muted) !important; text-decoration: none; }
.h27-top__proof b { color: var(--h-ink); }
.h27-top__proof span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #C5CBD3; }
.h27-stars { color: var(--h-star); letter-spacing: 1px; }
.h27-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h27-door { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--h-r-lg); overflow: hidden; background: var(--h-soft);
	color: #fff !important; text-decoration: none; box-shadow: 0 1px 2px rgba(15,15,16,.06), 0 8px 24px -12px rgba(15,15,16,.35); isolation: isolate; }
.h27 .h27-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; z-index: -1; }
.h27-door::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(10,22,30,0) 0, rgba(10,22,30,.78) 100%); z-index: -1; }
.h27-door:hover img { transform: scale(1.04); }
.h27-door__t { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.h27-door__t b { font-size: 22px; line-height: 1.15; font-weight: 900; }
.h27-door__t small { font-size: 13px; font-weight: 600; opacity: .95; }
.h27-door__go { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.92); color: var(--h-ink-blue); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.h27-door__go .h27-arr { width: 17px; height: 17px; }

/* four smaller doors: the lines the owner wants to grow (same look as the big doors, so they read as main sections) */
.h27-push { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.h27-door--sm { aspect-ratio: 3 / 2; border-radius: var(--h-r); }
.h27-door--sm::after { inset: 30% 0 0; }
.h27-door--sm .h27-door__t { inset-inline: 10px; bottom: 8px; }
.h27-door--sm .h27-door__t b { font-size: 16px; }
.h27-door--sm .h27-door__t small { font-size: 11.5px; line-height: 1.3; }

/* themes = what visitors type in the search box (one row on phones; the cut-off chip shows there is more) */
.h27-themes { padding-top: 16px; }
.h27-themes__t { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--h-ink); }
.h27-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.h27-chips::-webkit-scrollbar { display: none; }
.h27-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--h-line);
	background: #fff; color: var(--h-ink) !important; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.h27-chip:hover { border-color: var(--h-ink); }
.h27-chip--cd { border-color: #9FD0E8; background: var(--h-soft-blue); color: var(--h-ink-blue) !important; }

.h27-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding: 10px 4px; border-radius: var(--h-r);
	background: var(--h-cream); }
.h27-trust li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-inline: 4px; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--h-muted); }
.h27-trust li + li { border-inline-start: 1px solid #E4DFD6; }
.h27-trust svg { width: 22px; height: 22px; color: var(--h-ink-blue); }
.h27-trust b { display: block; color: var(--h-ink); font-weight: 800; }

/* 2. categories: a grid with real room photos, not a swipe row (NN/g: grids beat carousels for many items on phones) */
.h27-cats { padding-top: 26px; }
.h27-group + .h27-group { margin-top: 26px; }
.h27-h2__sub { font-weight: 600; color: var(--h-muted); font-size: .8em; }
.h27-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.h27-tile { display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--h-ink) !important; }
.h27-tile__img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--h-soft); box-shadow: 0 1px 2px rgba(15,15,16,.06); }
.h27-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.h27-tile:hover .h27-tile__img img { transform: scale(1.05); }
.h27-tile__t { font-size: 13.5px; line-height: 1.3; font-weight: 700; text-align: center; text-wrap: balance; }
.h27-also { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.h27-also a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--h-soft);
	color: var(--h-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.h27-also a:hover { background: #ECEEF1; }

/* soft full-width band behind a section */
.h27-band { background: var(--h-cream); margin-block: 10px; padding-block: 26px; }

/* 4. recently viewed + 5. products: one horizontal rail of the theme's product cards */
.h27-clear { border: 0; background: none; color: var(--h-muted); font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; cursor: pointer; text-decoration: underline; }
.h27-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
.h27-rail::-webkit-scrollbar { display: none; }
.h27-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.h27-tabs::-webkit-scrollbar { display: none; }
.h27-tab { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--h-line); background: #fff; color: var(--h-text);
	font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.h27-tab.is-on { background: var(--h-ink); border-color: var(--h-ink); color: #fff; }
.h27-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--h-muted); }
.h27-note b { color: var(--h-ink); }
.h27-disc { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--h-r);
	background: var(--h-soft-blue); color: var(--h-ink) !important; font-size: 14.5px; text-decoration: none; }
.h27-disc:hover { background: #DDEFF8; }
.h27-disc .h27-arr { color: var(--h-ink-blue); }
/* theme product card (inc/hp-card.php) — the rules it needs, so the old homepage stylesheet can stay unloaded */
.h27 .pcard { flex: 0 0 44%; min-width: 140px; max-width: 230px; scroll-snap-align: start; display: block; position: relative; text-decoration: none; color: var(--h-text); }
.h27 .pcard img { -webkit-user-drag: none; }
.h27 .pcard__media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--h-r); overflow: hidden; background: var(--h-soft); margin-bottom: 10px; }
.h27 .pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h27 .pcard:hover .pcard__media img { transform: scale(1.04); }
.h27 .pcard__badges { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.h27 .pbadge { display: inline-flex; padding: 3px 9px; font-size: 11.5px; font-weight: 800; border-radius: 999px; }
.h27 .pbadge--new { background: var(--h-ink-blue); color: #fff; }
.h27 .pbadge--best { background: var(--h-ink); color: #fff; }
.h27 .pbadge--deal { background: #C2410C; color: #fff; }
.h27 .pcard__fav { position: absolute; top: 10px; left: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94);
	display: grid; place-items: center; cursor: pointer; }
.h27 .pcard__fav svg { width: 18px; height: 18px; stroke: var(--h-muted); fill: none; stroke-width: 1.8; }
.h27 .pcard__fav.is-active svg { stroke: #DC2626; fill: #DC2626; }
.h27 .pcard__quick { display: none; }
.h27 .pcard__info { padding: 0 2px; }
.h27 .pcard__name { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; color: var(--h-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h27 .pcard__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.h27 .pcard__stars { color: var(--h-star); font-size: 12px; letter-spacing: 1px; }
.h27 .pcard__reviews { font-size: 12px; color: var(--h-muted); }
.h27 .pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.h27 .pcard__price-val { font-size: 17px; font-weight: 800; color: var(--h-ink); }
.h27 .pcard__price-unit { font-size: 12.5px; color: var(--h-muted); }
.h27 .pcard__price-old { font-size: 13px; color: var(--h-muted); text-decoration: line-through; }

/* 6. from your photo */
.h27-photo__card { display: grid; gap: 16px; padding: 18px; border-radius: var(--h-r-lg); background: var(--h-mint); }
.h27-photo__txt p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--h-muted); }
.h27-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; counter-reset: h27s; }
.h27-steps li { counter-increment: h27s; padding: 10px 8px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--h-ink); }
.h27-steps li::before { content: counter(h27s); display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: var(--h-ink-blue); color: #fff; font-size: 12.5px; }
.h27-photo__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.h27-photo__cta .h27-link { font-size: 14.5px; }
.h27-photo__img { border-radius: var(--h-r); overflow: hidden; }
.h27-photo__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.h27-poster { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px 10px 12px; border-radius: var(--h-r);
	border: 1.5px solid var(--h-line); background: #fff; color: var(--h-ink) !important; text-decoration: none; }
.h27-poster:hover { border-color: var(--h-ink-blue); }
.h27 .h27-poster__img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.h27-poster__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.h27-poster__txt span { font-size: 13px; color: var(--h-muted); }
.h27-poster .h27-arr { color: var(--h-ink-blue); }

/* 7. proof */
/* phones: the three reviews side by side in a swipe row (one + a peek) instead of a 1,000 px stack */
.h27-revs { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
.h27-revs::-webkit-scrollbar { display: none; }
.h27-rev { scroll-snap-align: start; }
.h27-rev { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--h-r); border: 1px solid var(--h-line); background: #fff; }
.h27-rev p { font-size: 15px; line-height: 1.55; color: var(--h-ink); overflow-wrap: anywhere; }
.h27-rev__f { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.h27-rev__f img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.h27-rev__f a { display: block; color: var(--h-muted) !important; font-size: 12.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.h27-rev__v { color: #15803D; font-size: 12px; font-weight: 700; }
.h27-ugc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h27-ugc a { display: block; border-radius: 14px; overflow: hidden; background: var(--h-soft); }
.h27-ugc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.h27-ugc a:hover img { transform: scale(1.03); }

/* 8. business */
.h27-biz__card { display: grid; gap: 14px; padding: 18px; border-radius: var(--h-r-lg); background: var(--h-cream); }
.h27-biz__card p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--h-muted); }
.h27-biz__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* 9. faq + text */
.h27-faq .h27-h2 { margin-bottom: 10px; }
.h27-q { border-bottom: 1px solid var(--h-line); }
.h27-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; cursor: pointer;
	font-size: 15.5px; font-weight: 700; color: var(--h-ink); list-style: none; }
.h27-q summary::-webkit-details-marker { display: none; }
.h27-q summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--h-ink-blue); }
.h27-q[open] summary::after { content: "−"; }
.h27-q p { padding: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--h-muted); }
.h27-q p a { color: var(--h-ink-blue) !important; font-weight: 700; }
.h27-faq__more { margin-top: 14px; font-size: 14.5px; color: var(--h-muted); }
.h27-seo { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--h-line); font-size: 14.5px; line-height: 1.7; color: var(--h-muted); }
.h27-seo .h27-h3 { margin-bottom: 6px; font-size: 16px; }
.h27-seo p + p { margin-top: 8px; }
.h27-seo a { color: var(--h-ink-blue) !important; }

/* tablets and up */
@media (min-width: 761px) {
	.h27-wrap { padding-inline: 24px; }
	.h27-sec { padding-block: 32px; }
	.h27-h2 { font-size: 26px; }
	.h27-h2--sm { font-size: 19px; }
	.h27-top { padding-top: 24px; background: linear-gradient(180deg, var(--h-soft-blue) 0, #fff 420px); }
	.h27-top__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: center; }
	.h27-top__intro { padding-bottom: 0; }
	.h27-top h1 { font-size: clamp(30px, 3.2vw, 42px); }
	.h27-top__lead { margin-top: 12px; font-size: 16.5px; line-height: 1.55; }
	.h27-top__proof { margin-top: 14px; font-size: 14.5px; }
	.h27-doors { gap: 16px; }
	.h27-door { aspect-ratio: 5 / 6; }
	.h27-door__t { inset-inline: 20px; bottom: 18px; }
	.h27-door__t b { font-size: 30px; }
	.h27-door__t small { font-size: 15px; }
	.h27-door__go { top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; }
	.h27-push { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
	.h27-door--sm { aspect-ratio: 16 / 10; }
	.h27-door--sm .h27-door__t { inset-inline: 16px; bottom: 12px; }
	.h27-door--sm .h27-door__t b { font-size: 20px; }
	.h27-door--sm .h27-door__t small { font-size: 13.5px; }
	.h27-themes { display: flex; align-items: center; gap: 14px; padding-top: 22px; }
	.h27-themes__t { margin: 0; white-space: nowrap; font-size: 16px; }
	.h27-trust { max-width: 760px; margin: 18px auto 0; padding: 12px 8px; }
	.h27-trust li { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; text-align: start; }
	.h27-trust b { display: inline; }
	.h27-band { padding-block: 36px; }
	.h27-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
	.h27-cats > .h27-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
	.h27-group + .h27-group { margin-top: 0; }
	.h27-also { grid-column: 1 / -1; }
	.h27-rail { margin-inline: 0; padding-inline: 0; }
	.h27 .pcard { flex-basis: calc(25% - 9px); max-width: none; }
	.h27-photo__card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 32px; gap: 32px; }
	.h27-revs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
	.h27-ugc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.h27-biz__card { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
}
@media (min-width: 1100px) {
	.h27-tiles { gap: 16px 14px; }
	.h27-tile__t { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.h27 * { transition: none !important; }
}
