/* StickDecor category page 2027 — mobile first, same line as the homepage 2027 (home27.css): brand blue #4DAAD5 as accent,
   its deep shade #256E8E for buttons and links (white on #4DAAD5 is 2.6:1; on #256E8E 5.6:1), ink #0F0F10, cream / soft-blue
   grounds, system font. The theme's shop.css stays loaded: product cards, guide and FAQ keep their look. */
.sd-cat27 { --c-brand: #4DAAD5; --c-ink-blue: #256E8E; --c-ink-blue-h: #1F5E79; --c-soft-blue: #EAF5FB; --c-ink: #0F0F10;
	--c-text: #18181B; --c-muted: #5B616B; --c-line: #E5E7EB; --c-soft: #F6F7F8; --c-cream: #F5F3EF; --c-r: 14px; --c-r-lg: 20px; }
.c27 { color: var(--c-text); }
.c27 *, .c27 *::before, .c27 *::after { box-sizing: border-box; }
/* resets at element specificity (:where drops the .c27 part): they lose to every class rule below */
:where(.c27) ul { list-style: none; margin: 0; padding: 0; }
:where(.c27) h1, :where(.c27) h2, :where(.c27) p { margin: 0; }
.c27-wrap { width: 100%; max-width: 1272px; margin: 0 auto; padding-inline: 16px; }
.c27-wrap--text { max-width: 820px; }
.c27-arr { width: 16px; height: 16px; flex: none; }
.c27 :focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 8px; }
.c27-link { color: var(--c-ink-blue) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 1. title */
.c27-head { padding: 12px 0 10px; background: linear-gradient(180deg, var(--c-soft-blue) 0, #fff 100%); }
.c27-crumbs { font-size: 12.5px; color: var(--c-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c27-crumbs a { color: var(--c-muted) !important; text-decoration: none; }
.c27-crumbs a:hover { text-decoration: underline; }
.c27-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.c27-head h1 { font-size: 24px; line-height: 1.2; font-weight: 900; color: var(--c-ink); letter-spacing: -.3px; text-wrap: balance; }
.c27-head__count { font-size: 13.5px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.c27-head__intro { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c27-head__more { display: inline-block; margin-top: 2px; padding-block: 4px; font-size: 13.5px; font-weight: 700; color: var(--c-ink-blue) !important; text-decoration: underline; text-underline-offset: 3px; }

/* 2. sub-categories: one swipe row; the cut-off chip shows there is more */
.c27-nav { padding: 2px 0 8px; background: #fff; }
.c27-nav__tabs { display: flex; gap: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.c27-nav__tab { border: 0; background: none; padding: 8px 0 7px; margin-bottom: -1px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--c-muted); cursor: pointer;
	border-bottom: 2px solid transparent; min-height: 40px; }
.c27-nav__tab.is-on { color: var(--c-ink); border-bottom-color: var(--c-ink-blue); }
.c27-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
.c27-chips::-webkit-scrollbar { display: none; }
.c27-chips li { flex: none; }
.c27-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 14px; border-radius: 999px; border: 1.5px solid var(--c-line);
	background: #fff; color: var(--c-ink) !important; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.c27-chip:hover { border-color: var(--c-ink); }
.c27-chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff !important; }
.c27-chip__img { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; margin-inline-start: -9px; background: var(--c-soft); }
.c27 .c27-chip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c27-chip__sw { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid rgba(15,15,16,.15); }
.c27-chip--back { background: var(--c-soft); border-color: var(--c-soft); gap: 4px; padding-inline: 10px 14px; }
.c27-arr--back { width: 15px; height: 15px; }

/* 3. sort bar */
.c27-bar { padding: 6px 0 10px; background: #fff; }
.c27-bar__in { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.c27-bar__in::-webkit-scrollbar { display: none; }
.c27-sort { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--c-soft); flex: none; cursor: pointer; }
.c27-sort svg { width: 16px; height: 16px; color: var(--c-ink-blue); flex: none; }
.c27-sort__l { font-size: 13.5px; color: var(--c-muted); }
.c27 .c27-sort select { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--c-ink); padding: 0; margin: 0; height: 38px; width: auto; max-width: 150px;
	-webkit-appearance: none; appearance: none; cursor: pointer; }
.c27-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--c-soft); color: var(--c-ink) !important;
	font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; }
.c27-pill:hover { background: #ECEEF1; }
.c27-pill.is-on { background: var(--c-ink); color: #fff !important; }
.c27-pill--disc { background: var(--c-soft-blue); color: var(--c-ink-blue) !important; }
.c27-pill--clear { background: none; text-decoration: underline; color: var(--c-muted) !important; padding-inline: 6px; }

/* 4. products: the theme's cards in a plain grid */
.c27-grid { padding: 4px 0 8px; }
.c27 .shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
.c27 .shop-grid .pcard { width: 100%; min-width: 0; }
.c27-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 8px; }
.c27-more__count { font-size: 13.5px; color: var(--c-muted); }
.c27-more__count b { color: var(--c-ink); }
.c27-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px; border-radius: 999px; border: 2px solid transparent;
	background: var(--c-ink-blue); color: #fff !important; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.c27-btn:hover { background: var(--c-ink-blue-h); }
.c27-btn.is-busy { opacity: .6; pointer-events: none; }
.c27-btn--ghost { background: #fff; color: var(--c-ink) !important; border-color: var(--c-line); font-size: 15px; margin-top: 14px; }
.c27-btn--ghost:hover { background: #fff; border-color: var(--c-ink-blue); color: var(--c-ink-blue) !important; }
.c27-empty { padding-block: 40px; text-align: center; }

/* below the grid */
.c27-sec { padding-block: 22px; }
.c27-h2 { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--c-ink); letter-spacing: -.2px; margin-bottom: 12px; text-wrap: balance; }
.c27-subs { background: var(--c-cream); margin-top: 14px; }
.c27-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.c27-tiles.is-cut > li:nth-child(n+13) { display: none; }
.c27-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c27-tile { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--c-ink) !important; }
.c27-tile__img { display: block; aspect-ratio: 4 / 5; border-radius: var(--c-r); overflow: hidden; background: var(--c-soft); box-shadow: 0 1px 2px rgba(15,15,16,.06); }
.c27-tiles--4 .c27-tile__img { aspect-ratio: 4 / 3; }
.c27 .c27-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.c27-tile:hover .c27-tile__img img { transform: scale(1.05); }
.c27-tile__t { font-size: 13.5px; line-height: 1.3; font-weight: 700; text-align: center; text-wrap: balance; }
.c27-tile__n { font-size: 12px; color: var(--c-muted); text-align: center; margin-top: -3px; }
.c27-subs .c27-wrap { display: flex; flex-direction: column; }
.c27-subs .c27-btn--ghost { align-self: center; }

.c27-about__body { font-size: 15px; line-height: 1.75; color: #3A3F47; }
.c27-about__body p { margin: 0 0 12px; }
.c27-about__body h2, .c27-about__body h3 { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--c-ink); margin: 18px 0 8px; }
.c27-about__body a { color: var(--c-ink-blue); font-weight: 600; }
.c27-about__body ul, .c27-about__body ol { margin: 0 0 12px; padding-inline-start: 20px; list-style: revert; }

.c27-guide { padding-block: 0 8px; }
.c27-fold--guide summary .c27-h2 { margin: 0; font-size: 17px; }
.c27-guide__body { padding-bottom: 16px; font-size: 15px; line-height: 1.75; color: #3A3F47; }
.c27-guide__body p { margin: 0 0 12px; }
.c27-guide__body h3 { font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--c-ink); margin: 20px 0 10px; }
.c27-guide__body h4 { font-size: 15.5px; font-weight: 800; color: var(--c-ink); margin: 14px 0 4px; }
.c27-guide__body a { color: var(--c-ink-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.c27-steps { display: grid; gap: 8px; counter-reset: c27s; margin-bottom: 4px; }
.c27-steps li { position: relative; padding: 10px 46px 10px 12px; border-radius: 12px; background: var(--c-cream); counter-increment: c27s; line-height: 1.5; }
.c27-steps li::before { content: counter(c27s); position: absolute; inset-inline-start: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-ink-blue); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.c27-steps li b { display: block; color: var(--c-ink); }
.c27-steps li span { font-size: 14px; color: var(--c-muted); }
.c27-tip { padding: 10px 14px; border-inline-start: 3px solid var(--c-brand); background: var(--c-soft); border-radius: 8px; font-size: 14.5px; }
.c27-guide__help { margin-top: 16px !important; font-weight: 600; }
.c27-fold { border-block: 1px solid var(--c-line); }
.c27-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 0; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--c-ink); list-style: none; }
.c27-fold summary::-webkit-details-marker { display: none; }
.c27-fold summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--c-ink-blue); }
.c27-fold[open] summary::after { content: "−"; }
.c27-mat__list { display: grid; gap: 10px; padding-bottom: 6px; }
.c27-mat__list li { padding: 12px 14px; border-radius: 12px; background: var(--c-soft); font-size: 14.5px; line-height: 1.5; }
.c27-mat__list li > span:last-child { display: block; color: var(--c-muted); font-size: 14px; }
.c27-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-soft-blue); color: var(--c-ink-blue); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.c27-mat__note { padding: 6px 0 14px; font-size: 14px; color: var(--c-muted); }

.c27-cd { padding-block: 8px 28px; }
.c27-cd__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--c-r-lg); background: var(--c-soft-blue);
	color: var(--c-ink) !important; text-decoration: none; }
.c27-cd__card:hover { background: #DDEFF8; }
.c27-cd__txt { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.c27-cd__txt span { font-size: 14px; color: var(--c-muted); }
.c27-cd__card .c27-arr { color: var(--c-ink-blue); width: 20px; height: 20px; }

/* tablets and up */
@media (min-width: 700px) {
	.c27 .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
	.c27-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.c27-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.c27-wrap { padding-inline: 24px; }
	.c27-head { padding: 22px 0 12px; }
	.c27-head h1 { font-size: 34px; }
	.c27-head__intro { font-size: 16px; max-width: 760px; -webkit-line-clamp: 3; }
	.c27-crumbs { font-size: 13.5px; }
	.c27-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
	.c27-bar__in { overflow: visible; }
	.c27 .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
	.c27-sec { padding-block: 34px; }
	.c27-h2 { font-size: 24px; }
	.c27-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
	.c27-tile__t { font-size: 14.5px; }
	.c27-mat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.c27 * { transition: none !important; }
}

/* search without results */
.c27-empty { padding-block: 28px 8px; }
.c27-empty p { margin: 6px 0 14px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.c27-search { display: flex; gap: 8px; max-width: 520px; }
.c27-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.c27-search input[type="search"]:focus { outline: 0; border-color: var(--c-ink-blue); box-shadow: 0 0 0 3px rgba(37, 110, 142, .15); }
.c27-search .c27-btn { flex: none; }
.c27 .c27-off { position: absolute; z-index: 3; inset-inline-start: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: #B42318; color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1.4; }
.c27-head__intro.c27-head__intro--full { display: block; -webkit-line-clamp: unset; overflow: visible; color: var(--c-ink); font-weight: 600; }
