/* Text-only circular category menu, with arrows aligned to the text row. */
.category-wheel-menu{--wheel-inset:0px;position:relative;margin-top:24px;margin-bottom:8px}
.category-wheel-menu.wrap{--wheel-inset:16px}
.category-wheel{position:relative;margin:0;height:100px;background:#fff;overflow:hidden;touch-action:pan-y;cursor:grab;perspective:650px;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.category-wheel.is-dragging{cursor:grabbing;user-select:none}
.category-wheel-track{position:relative;display:flex;align-items:center;gap:40px;width:max-content;height:100%;transform-style:preserve-3d;will-change:transform}
.category-wheel-item{display:block;flex:none;white-space:nowrap;padding:20px 0;font-size:20px;font-weight:400;color:#8b8f95;transform-origin:center;will-change:transform,opacity;text-decoration:none;user-select:none;-webkit-user-drag:none}
.category-wheel-item.is-active{color:var(--ink,#222);font-weight:700}
.category-wheel-item:focus-visible{outline:2px solid var(--accent,#e9552f);outline-offset:6px;border-radius:3px}
.category-wheel-controls{position:absolute;inset:0 var(--wheel-inset);pointer-events:none}
.category-wheel-controls>[data-wheel-prev],.category-wheel-controls>[data-wheel-next]{position:absolute;top:23px;display:grid;place-items:center;width:54px;height:54px;padding:0;border:1px solid #e0e4ea;border-radius:50%;background:#fff;color:#253449;font-size:23px;line-height:1;cursor:pointer;pointer-events:auto;transition:background .2s,border-color .2s;box-shadow:0 0 0 8px #fff}
.category-wheel-controls>[data-wheel-prev]{left:0}
.category-wheel-controls>[data-wheel-next]{right:0}
.category-wheel-controls>[data-wheel-prev]:hover,.category-wheel-controls>[data-wheel-next]:hover{background:#f5f6f8;border-color:#c9d0da}
.wheel-preview-actions{display:flex;align-items:center;justify-content:center;height:38px;margin-top:14px}
.wheel-pause{display:flex;align-items:center;justify-content:center;gap:7px;min-width:140px;height:38px;padding:0 16px;border:1px solid #222529;border-radius:24px;background:#222529;color:#fff;font-size:12px;line-height:20px;white-space:nowrap;cursor:pointer}
.wheel-pause svg{width:17px;height:17px;flex:none}
.wheel-pause:hover{background:#3a4047}
.wheel-pause[aria-pressed=true]{background:#fff;color:#222529}
.wheel-pause[aria-pressed=true]:hover{background:#f4f5f7}
.wheel-pause:focus-visible{outline:2px solid var(--accent,#e9552f);outline-offset:4px}
.category-wheel-controls>button:focus-visible{outline:2px solid var(--accent,#e9552f);outline-offset:4px}

/* Four images on desktop, two on mobile. Reserve the same space in every load state. */
.wheel-preview{width:100%;margin:0 auto}
.home-design-section>.wheel-preview{padding-inline:clamp(12px,1.5vw,28px)}
.wheel-preview-head{display:flex;justify-content:space-between;gap:16px;align-items:center;height:48px;min-height:48px;margin:0 0 10px}
.wheel-preview-head h3{min-width:0;margin:0;font-size:20px;line-height:24px;max-height:48px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.wheel-preview-head a{flex:none;white-space:nowrap;font-size:13px;color:#6b727b}
.wheel-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch}
.wheel-preview-photo{display:block;min-width:0;color:inherit;text-decoration:none}
.wheel-preview-media{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;border-radius:12px;background:#f1f3f5;isolation:isolate}
.wheel-preview-media img,.wheel-preview-placeholder-media{position:absolute;inset:0;display:block;width:100%;height:100%;object-position:center}
.wheel-preview-media .wheel-preview-image{z-index:1;object-fit:contain}
.wheel-preview-media .wheel-preview-backdrop{z-index:0;object-fit:cover;filter:blur(18px);transform:scale(1.14);opacity:.85;pointer-events:none}
.wheel-preview-placeholder-media{background:#f1f3f5}
.wheel-preview-photo>span{height:40px;min-height:40px;margin:10px 0 0;padding:0 4px;color:#68717d;font-size:13px;font-weight:500;line-height:20px;text-align:center;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.wheel-preview-photo:focus-visible{outline:2px solid var(--accent,#e9552f);outline-offset:5px;border-radius:12px}
.wheel-preview>p{height:52px;min-height:52px;margin:8px 0 0;padding:8px 14px;font-size:12px;line-height:18px;color:#858c96;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center;border-radius:12px}
.wheel-preview>p:not(:empty){background:#f7f8fa}
.wheel-preview-grid[aria-busy=true]{opacity:.55}
@media(max-width:600px){
  .category-wheel{height:88px}
  .category-wheel-track{gap:28px}
  .category-wheel-item{font-size:18px}
  .category-wheel-controls>[data-wheel-prev],.category-wheel-controls>[data-wheel-next]{top:22px;width:44px;height:44px;font-size:21px;box-shadow:0 0 0 4px #fff}
  .wheel-pause{height:36px;min-width:132px}
  .wheel-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .wheel-preview-grid>.wheel-preview-photo:nth-child(n+3){display:none}
  .wheel-preview-head h3{font-size:17px}
  .wheel-preview-head a{font-size:12px}
  .wheel-preview-media{border-radius:10px}
  .wheel-preview-photo>span{height:36px;min-height:36px;margin-top:8px;font-size:12px;line-height:18px}
}
@media(prefers-reduced-motion:reduce){.category-wheel-item{will-change:auto}.category-wheel-controls>button{transition:none}}
