/* Category discovery and detail pages. Scoped to avoid changing shared pages. */
.categories-page { background: #fbfcfa; }
.category-shell { max-width: 1152px; margin: auto; padding: 0 26px 64px; }
.category-crumbs { display: flex; gap: 10px; align-items: center; padding: 24px 0 20px; font-size: 12px; color: #647c78; }
.category-crumbs a:hover { color: #002f34; text-decoration: underline; }
.category-hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 340px; background: #e7f4ed; border-radius: 24px; overflow: hidden; padding: 40px 46px; }
.category-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 14px; color: #3f6a5f; }
.category-hero h1 { font-size: clamp(38px, 4.5vw, 58px); letter-spacing: -.055em; line-height: 1.04; margin: 0 0 18px; font-weight: 800; }
.category-hero h1 em { font-style: normal; color: #1b8068; }
.category-hero-copy > p { font-size: 15px; line-height: 1.65; max-width: 380px; color: #486660; margin: 0 0 22px; }
.category-hero-link { display: inline-flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 800; border-bottom: 1px solid #8ea99f; padding-bottom: 6px; }
.category-hero-link span { font-size: 22px; line-height: 1; }
.category-art { height: 270px; position: relative; }
.art-orbit { position: absolute; width: 255px; height: 255px; border: 1px solid #bedccf; border-radius: 50%; top: 0; left: 80px; }
.art-orbit::after { content: ''; position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed #bedccf; }
.art-card { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 128px; height: 153px; border: 5px solid #fff; border-radius: 19px; box-shadow: 0 15px 25px #21463812; }
.art-card svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
.art-card span { font-size: 10px; font-weight: 800; }
.art-home { background: #d7ccf0; transform: rotate(-12deg); top: 25px; left: 30px; }
.art-phone { background: #fae39c; transform: rotate(9deg); top: 4px; right: 8px; }
.art-chair { background: #a5ddc7; transform: rotate(-2deg); left: 148px; top: 95px; }
.art-spark { position: absolute; left: 175px; top: -15px; font-size: 47px; color: #16785b; }
.category-browse { margin-top: 42px; scroll-margin-top: 90px; }
.category-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.category-section-head h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.035em; margin: 0; }
#category-total { color: #678079; font-size: 12px; margin: 0 0 3px; }
.category-search { display: flex; align-items: center; gap: 12px; border: 1px solid #dce5df; background: #fff; padding: 0 17px; border-radius: 12px; min-height: 54px; }
.category-search:focus-within { border-color: #218a70; box-shadow: 0 0 0 3px #218a7018; }
.category-search input { background: transparent; border: 0; outline: none; width: 100%; min-width: 0; font-size: 14px; padding: 16px 0; }
.category-search input::placeholder { color: #84958e; }
.category-search kbd { font: inherit; font-size: 10px; color: #7e9189; background: #f3f6f3; padding: 4px 7px; border: 1px solid #e4eae5; border-radius: 5px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-filters button { border: 1px solid #dfe6e1; border-radius: 22px; padding: 9px 15px; font-size: 12px; font-weight: 600; background: #fff; transition: background .15s; }
.category-filters button:hover { background: #eaf2ec; }
.category-filters button[aria-pressed="true"] { background: #003b37; border-color: #003b37; color: #fff; }
.category-results { margin: 21px 0 14px; font-size: 11px; color: #758980; }
.category-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card { --wash: #e2f2e8; --icon-bg: #c5e4d1; position: relative; background: #fff; border: 1px solid #e0e7e1; border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tone-peach { --wash: #fff0e6; --icon-bg: #f8d9c4; }
.tone-lavender { --wash: #f0edf9; --icon-bg: #ded5f0; }
.tone-blue { --wash: #eaf1fa; --icon-bg: #cedff4; }
.tone-yellow { --wash: #fbf5df; --icon-bg: #f0e4af; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #193e3010; border-color: #aac8b5; }
.category-card-main { position: relative; display: block; padding: 19px 18px 20px; background: linear-gradient(150deg, var(--wash), #ffffff 100%); min-height: 194px; }
.category-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 8px; }
.category-card-icon { display: grid; place-items: center; width: 49px; height: 49px; background: var(--icon-bg); border-radius: 15px; }
.category-card-icon .ui-icon { width: 27px; height: 27px; }
.category-ad-count { font-size: 10px; color: #5c766b; background: #ffffffa8; padding: 4px 8px; border-radius: 6px; }
.category-card h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.025em; padding-right: 10px; }
.category-card-main p { font-size: 12px; line-height: 1.5; color: #687b72; margin: 0; max-width: 170px; min-height: 36px; }
.category-card-arrow { position: absolute; right: 17px; bottom: 19px; font-size: 21px; color: #587366; }
.category-card-links { display: flex; flex-direction: column; padding: 12px 18px 15px; gap: 7px; border-top: 1px solid #edf0eb; }
.category-card-links a { font-size: 11px; color: #60756b; width: fit-content; }
.category-card-links a:hover { color: #00634e; text-decoration: underline; }
.category-card-links .category-all { margin-top: 6px; padding-top: 9px; width: 100%; border-top: 1px solid #edf0eb; color: #144c3a; font-weight: 800; display: flex; justify-content: space-between; }
.category-sell { display: flex; align-items: center; gap: 22px; margin-top: 40px; background: #003b37; color: #fff; border-radius: 18px; padding: 30px; }
.category-sell-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 36px; color: #b8e7c9; border: 1px solid #37665b; border-radius: 50%; flex-shrink: 0; }
.category-sell h2 { font-size: 22px; margin: 0 0 5px; letter-spacing: -.025em; }
.category-sell p { color: #b4cec3; margin: 0; font-size: 13px; }
.category-sell > a { margin-left: auto; display: flex; align-items: center; gap: 25px; background: #c6eed5; color: #003b37; padding: 12px 18px; border-radius: 9px; white-space: nowrap; font-size: 13px; font-weight: 800; }
.categories-page :is(a, button):focus-visible { outline: 3px solid #0b997b; outline-offset: 4px; }
.category-detail-art { position: absolute; inset: 25px 65px; display: grid; place-items: center; background: #c2e3d1; border: 6px solid #fff; border-radius: 30px; transform: rotate(-6deg); box-shadow: 0 12px 30px #003b3712; }
.category-detail-art .ui-icon { width: 100px; height: 100px; stroke-width: 1; }
.category-subsection { margin-bottom: 28px; }
.category-subsection h3 { font-size: 16px; margin: 0 0 12px; }
.category-sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-sub-grid a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e0e7e1; border-radius: 12px; padding: 19px; font-size: 14px; }
.category-sub-grid a:hover { background: #e9f4ec; border-color: #a7c8b2; }
.category-sub-grid small { margin-left: auto; white-space: nowrap; font-size: 11px; color: #6b8176; }
.category-back { display: inline-block; font-size: 13px; font-weight: 700; padding: 12px 0; }
.category-empty, .category-loading { padding: 55px 20px; text-align: center; border-radius: 16px; background: #eff4ee; }
.category-empty h3 { margin-top: 0; }.category-empty p { color: #5d7668; }
.category-empty button { padding: 12px 20px; border-radius: 8px; background: #003b37; color: #fff; }
@media (max-width: 1000px) {
  .category-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-hero { padding: 32px; }
  .category-art { transform: scale(.85); transform-origin: center; }
  .art-home { left: 0; }.art-chair { left: 85px; }.art-orbit { left: 30px; }.art-spark { left: 125px; }
}
@media (max-width: 720px) {
  .category-shell { padding: 0 18px 40px; }
  .category-crumbs { padding: 18px 0 14px; }
  .category-hero { grid-template-columns: 1fr; padding: 27px 25px 20px; border-radius: 18px; }
  .category-hero h1 { font-size: 44px; }
  .category-hero-copy > p { font-size: 14px; }
  .category-art { height: 210px; max-width: 330px; width: 100%; margin: 18px auto 0; transform: none; }
  .art-card { width: 104px; height: 124px; gap: 10px; border-width: 4px; border-radius: 16px; }
  .art-card svg { width: 44px; height: 44px; }.art-home { left: 12px; top: 18px; }.art-phone { right: 6px; top: 0; }.art-chair { left: calc(50% - 42px); top: 70px; }
  .art-orbit { width: 185px; height: 185px; left: 60px; }.art-spark { left: 132px; font-size: 32px; top: -8px; }
  .category-section-head { align-items: start; flex-direction: column; gap: 10px; }
  .category-section-head h2 { font-size: 25px; }
  .category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card-main { padding: 14px 13px 18px; min-height: 203px; }
  .category-card-top { align-items: start; gap: 5px; }.category-card-icon { width: 40px; height: 40px; border-radius: 12px; }.category-card-icon .ui-icon { width: 24px; height: 24px; }
  .category-ad-count { font-size: 9px; padding: 4px 5px; }.category-card h3 { font-size: 17px; }.category-card-main p { font-size: 11px; padding-right: 8px; }.category-card-arrow { right: 10px; bottom: 9px; font-size: 17px; }
  .category-card-links { padding: 12px 13px; }.category-card-links a { font-size: 10px; }
  .category-filters { gap: 7px; }.category-filters button { font-size: 11px; padding: 8px 12px; }
  .category-search input { font-size: 12px; }.category-search kbd { display: none; }
  .category-sell { flex-wrap: wrap; padding: 23px; gap: 15px; }.category-sell-icon { display: none; }.category-sell h2 { font-size: 21px; }.category-sell > a { margin: 3px 0 0; }
  .category-sub-grid { grid-template-columns: 1fr; }.category-detail-art { inset: 10px 60px 20px; }
}
@media (prefers-reduced-motion: reduce) { .category-card, .category-filters button { transition: none; }.category-card:hover { transform: none; } }
@media (max-width: 720px) {
  .category-card-links { gap: 2px; }
  .category-card-links a { font-size: 12px; min-height: 30px; display: inline-flex; align-items: center; }
}
