/* Scoped to this plugin's shop template; no product/cart/checkout rules. */
body.kn-shop-active #content > .ast-container { display:block; max-width:none; width:100%; padding:0; }
body.kn-shop-active #content { background:#fff; }
.kn-shop { --kn-line:#e4e2df; --kn-text:#252525; --kn-sticky-top:96px; --kn-admin-top:0px; color:var(--kn-text); background:#fff; width:100%; margin:0 auto; font-family:inherit; font-size:14px; line-height:1.7; }
body.admin-bar .kn-shop { --kn-admin-top:32px; }
.kn-shop *, .kn-shop *::before, .kn-shop *::after { box-sizing:border-box; }
.kn-shop a { color:inherit; text-decoration:none; }
.kn-shop a:hover { text-decoration:underline; }
.kn-shop a:focus-visible, .kn-shop button:focus-visible, .kn-shop summary:focus-visible, .kn-shop input:focus-visible { outline:2px solid #6e6358; outline-offset:4px; }
.kn-shop button { font:inherit; border-radius:0; box-shadow:none; cursor:pointer; letter-spacing:normal; text-transform:none; }
.kn-shop .kn-preview-note { background:#fff4d6; color:#57431b; padding:10px 24px; font:13px/1.6 sans-serif; text-align:center; }
.kn-breadcrumb { max-width:1920px; margin:auto; padding:28px 48px 0; font-size:12px; color:#777; }
.kn-breadcrumb .woocommerce-breadcrumb { margin:0; font-size:12px; }
.kn-heading { padding:52px 20px 72px; text-align:center; }
.kn-heading h1 { margin:0; font-family:Georgia,'Times New Roman','Yu Mincho',serif; font-weight:400; font-size:clamp(28px,2.6vw,40px); line-height:1.4; letter-spacing:.015em; color:#111; }
.kn-heading h1 { overflow-wrap:anywhere; }
.kn-toolbar { height:64px; display:flex; justify-content:flex-end; position:relative; border-top:1px solid var(--kn-line); border-bottom:1px solid var(--kn-line); }
.kn-count { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); color:#777; font-size:13px; }
.kn-shop .kn-toolbar button { background:#fff; color:#555; border:0; border-left:1px solid var(--kn-line); padding:0 34px; min-width:180px; font-weight:400; }
.kn-shop .kn-toolbar button:hover { background:#f8f7f5; color:#111; }
.kn-sort-open span { margin-left:14px; }
.kn-js-only { display:none; }
.kn-enhanced .kn-sort-open { display:block; }
.kn-enhanced .kn-sort-fallback { display:none; }
.kn-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:44px; max-width:1920px; margin:0 auto; padding:48px 48px 88px; align-items:start; }
.kn-sidebar { min-width:0; position:sticky; top:calc(var(--kn-sticky-top) + var(--kn-admin-top)); max-height:calc(100vh - var(--kn-sticky-top) - var(--kn-admin-top) - 24px); max-height:calc(100dvh - var(--kn-sticky-top) - var(--kn-admin-top) - 24px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.kn-filter-form { margin:0; }
.kn-group { border:0; border-bottom:1px solid var(--kn-line); background:#fff; padding:0; margin:0; }
.kn-group summary { list-style:none; cursor:pointer; padding:22px 26px 22px 0; position:relative; color:#333; font-weight:400; }
.kn-group summary::-webkit-details-marker { display:none; }
.kn-group summary::after { content:''; position:absolute; right:6px; top:29px; width:8px; height:8px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }
.kn-group[open] summary::after { top:33px; transform:rotate(225deg); }
.kn-choices { padding:0 2px 22px; display:grid; gap:13px; }
.kn-choice { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:13px; font-weight:400; line-height:1.7; }
.kn-shop .kn-choice input { appearance:auto; flex:none; width:16px; height:16px; min-width:16px; padding:0; margin:4px 0 0; accent-color:#222; }
.kn-choice span { overflow-wrap:anywhere; }
.kn-price-fields { display:grid; gap:12px; padding-bottom:22px; }
.kn-price-fields label { display:grid; gap:6px; font-size:12px; }
.kn-shop .kn-price-fields input { width:100%; min-width:0; padding:9px 10px; border:1px solid #ccc; border-radius:0; color:#222; background:white; font-size:16px; }
.kn-filter-actions { display:grid; gap:12px; text-align:center; padding:24px 0 4px; }
.kn-shop .kn-apply { min-height:48px; width:100%; padding:12px 20px; border:1px solid #222; background:#222; color:#fff; }
.kn-shop .kn-apply:hover { background:#444; }
.kn-filter-actions a { font-size:12px; color:#777; text-decoration:underline; text-underline-offset:3px; }
.kn-results { min-width:0; }
.kn-shop .kn-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:40px 14px; margin:0; padding:0; list-style:none; }
.kn-product { min-width:0; padding:0; margin:0; text-align:center; }
.kn-product-link { display:block; }
.kn-shop .kn-product-link:hover { text-decoration:none; }
.kn-product-image { aspect-ratio:5 / 6; width:100%; background:#faf9f7; overflow:hidden; }
.kn-product-image img { display:block; width:100%; height:100%; object-fit:contain; margin:0; border-radius:0; }
.kn-product h2 { margin:14px 2px 7px; color:#222; font-family:inherit; font-size:14px; font-weight:400; line-height:1.8; overflow-wrap:anywhere; }
.kn-product-link:hover h2 { text-decoration:underline; text-underline-offset:3px; }
.kn-product-price { font-size:14px; color:#333; }
.kn-product-price del { color:#888; margin-right:5px; }
.kn-product-price ins { color:#ad231b; background:transparent; text-decoration:none; }
.kn-sale { display:table; margin:10px 0 -4px; background:#111; color:#fff; padding:1px 9px; font:11px/1.8 Georgia,serif; }
.kn-empty { padding:70px 20px; text-align:center; }
.kn-empty a { text-decoration:underline; }
.kn-pagination { margin-top:48px; }
.kn-pagination ul { list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0; padding:0; }
.kn-pagination li { margin:0; }
.kn-pagination .page-numbers:not(ul) { display:grid; place-items:center; min-width:38px; height:40px; padding:0 8px; border:1px solid var(--kn-line); }
.kn-pagination .current { background:#222; color:#fff; }
.kn-dialog { color:#222; background:#fff; border:0; padding:0; max-width:100%; box-shadow:0 8px 40px #0002; }
.kn-dialog:not([open]) { display:none; }
.kn-dialog::backdrop { background:rgb(0 0 0 / 42%); }
.kn-dialog-header { min-height:76px; display:flex; align-items:center; justify-content:space-between; padding:20px 28px; border-bottom:1px solid var(--kn-line); flex-shrink:0; }
.kn-dialog-header h2 { font:400 23px/1.4 Georgia,'Yu Mincho',serif; margin:0; color:#222; }
.kn-shop .kn-dialog-header button { display:grid; place-items:center; width:44px; height:44px; padding:0; background:transparent; border:0; color:#222; font:300 32px/1 sans-serif; }
.kn-filter-dialog { position:fixed; inset:0 0 0 auto; width:min(500px,92vw); height:100%; height:100dvh; max-height:100dvh; margin:0; }
.kn-filter-dialog[open] { display:flex; flex-direction:column; }
.kn-filter-slot, .kn-filter-slot #kn-filter-content, .kn-filter-slot .kn-filter-form { display:flex; flex-direction:column; flex:1; min-height:0; }
.kn-filter-slot .kn-filter-groups { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:0 24px; }
.kn-filter-slot .kn-filter-actions { flex-shrink:0; margin:0; padding:18px 24px max(18px,env(safe-area-inset-bottom)); border-top:1px solid var(--kn-line); }
.kn-sort-dialog { width:520px; max-height:85vh; max-height:85dvh; overflow-y:auto; }
.kn-sort-dialog .kn-dialog-header { position:sticky; top:0; background:#fff; }
.kn-sort-dialog .kn-dialog-header h2 { flex:1; text-align:center; padding-left:44px; }
.kn-sort-options { display:grid; text-align:center; padding:18px 20px 24px; }
.kn-sort-options a { display:block; padding:10px 12px; min-height:44px; font-size:15px; color:#777; }
.kn-sort-options a[aria-current] { color:#111; font-weight:600; text-decoration:underline; text-underline-offset:5px; }
.kn-sort-options a:hover { color:#111; background:#f9f8f6; }
html.kn-modal-open, html.kn-modal-open body { overflow:hidden; }
@media (min-width:901px) and (max-width:1199px) {
    .kn-layout { grid-template-columns:200px minmax(0,1fr); gap:28px; padding-left:28px; padding-right:28px; }
    .kn-shop .kn-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
    .kn-breadcrumb { padding:18px 16px 0; font-size:11px; }
    .kn-heading { padding:48px 16px 64px; }
    .kn-heading h1 { font-size:30px; }
    .kn-toolbar { height:58px; }
    .kn-enhanced .kn-filter-open { display:block; }
    .kn-shop .kn-toolbar button { min-width:0; width:50%; padding:0 12px; }
    .kn-shop .kn-toolbar .kn-filter-open { border-left:0; }
    .kn-enhanced .kn-count { display:none; }
    .kn-layout { display:block; padding:24px 12px 56px; }
    .kn-sidebar { position:static; max-height:none; margin-bottom:24px; overflow:visible; }
    .kn-enhanced .kn-sidebar { display:none; }
    .kn-shop .kn-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 8px; }
    .kn-product h2 { font-size:13px; margin-top:12px; }
    .kn-product-price { font-size:13px; }
    .kn-sort-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:100%; max-height:85dvh; margin:0; padding-bottom:env(safe-area-inset-bottom); }
    .kn-dialog-header { min-height:68px; padding:12px 20px; }
    .kn-dialog-header h2 { font-size:21px; }
    .kn-pagination { margin-top:34px; }
}
