/* Snuifbuis :: my-account, 404 and search results */

/* ---------- shared page shell ---------- */
body.sb-nisarg.woocommerce-account .sb-shopwrap,
body.sb-nisarg .sb-plain{max-width:1140px;margin-inline:auto;padding:36px 24px 70px}

/* ---------- my account ---------- */
body.sb-nisarg.woocommerce-account .woocommerce{display:grid;grid-template-columns:262px minmax(0,1fr);gap:28px;align-items:start}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation{background:#fff;border:1px solid var(--sb-line);border-radius:14px;padding:10px}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:10px;font-size:14.5px;font-weight:500;color:var(--sb-ink);transition:.14s}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--sb-surface);color:var(--sb-accent-dark)}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--sb-ink);color:#fff}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li a::before{content:"";width:18px;height:18px;flex:0 0 auto;background:currentColor;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;opacity:.75}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='9'/><rect x='14' y='3' width='7' height='5'/><rect x='14' y='12' width='7' height='9'/><rect x='3' y='16' width='7' height='5'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='9'/><rect x='14' y='3' width='7' height='5'/><rect x='14' y='12' width='7' height='9'/><rect x='3' y='16' width='7' height='5'/></svg>")}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M6 7h15l-1.5 10.5a2 2 0 0 1-2 1.5H9.5a2 2 0 0 1-2-1.5L6 7Z'/><path d='M9 7V5a3 3 0 0 1 6 0v2'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M6 7h15l-1.5 10.5a2 2 0 0 1-2 1.5H9.5a2 2 0 0 1-2-1.5L6 7Z'/><path d='M9 7V5a3 3 0 0 1 6 0v2'/></svg>")}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content{background:#fff;border:1px solid var(--sb-line);border-radius:14px;padding:26px}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content p{color:#43434d;line-height:1.7}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content table.shop_table{border:1px solid var(--sb-line);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content table.shop_table th{background:var(--sb-surface);font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--sb-muted);padding:13px 14px;border:0}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{padding:14px;border:0;border-top:1px solid var(--sb-line)}
/* login / register forms */
body.sb-nisarg.woocommerce-account .woocommerce-form-login,
body.sb-nisarg.woocommerce-account .woocommerce-form-register{background:#fff;border:1px solid var(--sb-line);border-radius:14px;padding:26px;max-width:460px}
body.sb-nisarg.woocommerce-account .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}
body.sb-nisarg.woocommerce-account h2{font-size:20px;letter-spacing:-.01em;margin-bottom:14px}
@media(max-width:880px){
  body.sb-nisarg.woocommerce-account .woocommerce{grid-template-columns:1fr}
  body.sb-nisarg.woocommerce-account .u-columns{grid-template-columns:1fr}
}

/* ---------- 404 + search results ---------- */
body.sb-nisarg.error404 #primary,body.sb-nisarg.search #primary{max-width:1140px;margin-inline:auto;padding:0 24px}
body.sb-nisarg.error404 .page-content,body.sb-nisarg.search .page-header{max-width:1140px;margin-inline:auto;padding-inline:24px}
body.sb-nisarg .sb-404{max-width:640px;margin:0 auto;text-align:center;padding:70px 24px 80px}
body.sb-nisarg .sb-404 .code{font-size:clamp(58px,10vw,92px);font-weight:700;letter-spacing:-.04em;color:var(--sb-accent);line-height:1}
body.sb-nisarg .sb-404 h1{font-size:clamp(23px,3vw,30px);margin:12px 0 10px;letter-spacing:-.02em}
body.sb-nisarg .sb-404 p{color:var(--sb-muted);margin:0 0 24px}
body.sb-nisarg .sb-404 .sb-404-actions{display:flex;gap:11px;justify-content:center;flex-wrap:wrap}
body.sb-nisarg .sb-404 .sb-404-actions a{display:inline-block;padding:13px 24px;border-radius:10px;font-weight:600;font-size:14.5px}
body.sb-nisarg .sb-404 .sb-404-actions .primary{background:var(--sb-accent);color:#fff}
body.sb-nisarg .sb-404 .sb-404-actions .primary:hover{background:var(--sb-accent-dark)}
body.sb-nisarg .sb-404 .sb-404-actions .ghost{border:1.5px solid var(--sb-line);color:var(--sb-ink)}
body.sb-nisarg .sb-404 .sb-404-actions .ghost:hover{border-color:var(--sb-ink)}
body.sb-nisarg .sb-404-cats{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:28px}
body.sb-nisarg .sb-404-cats a{background:#fff;border:1px solid var(--sb-line);border-radius:999px;padding:8px 15px;font-size:13.5px;color:var(--sb-ink)}
body.sb-nisarg .sb-404-cats a:hover{border-color:var(--sb-accent);color:var(--sb-accent-dark)}
/* hide the theme's bare 404/search markup we replace */
body.sb-nisarg.error404 .page-content>p,body.sb-nisarg.error404 .page-content>form,
body.sb-nisarg.error404 .page-title{display:none!important}
/* search results list */
body.sb-nisarg.search .page-header{padding-top:34px}
body.sb-nisarg.search .page-title{font-size:clamp(24px,3vw,32px);letter-spacing:-.02em}
body.sb-nisarg.search article.post-content{background:#fff;border:1px solid var(--sb-line);border-radius:12px;padding:20px;margin-bottom:14px}
body.sb-nisarg.search article .entry-title{font-size:18px;margin:0 0 6px}
body.sb-nisarg.search .entry-footer,body.sb-nisarg.search .entry-meta{display:none}

/* ---- fixes: kill Woo float/width, drop fragile mask icons, use a simple dot ---- */
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation,
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:auto!important;max-width:none!important;margin:0!important}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li a::before{display:none!important}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation li a{gap:0}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content>*:first-child{margin-top:0}
body.sb-nisarg.woocommerce-account .woocommerce{align-items:start}
/* account page shell (no sb-shopwrap on this template) */
body.sb-nisarg.woocommerce-account .entry-content{max-width:1140px;margin-inline:auto;padding:34px 24px 70px}
body.sb-nisarg.woocommerce-account .entry-content>.woocommerce{max-width:none;padding:0}

/* explicit grid placement (WooCommerce order/floats otherwise swap the columns) */
body.sb-nisarg.woocommerce-account .woocommerce{display:grid!important;grid-template-columns:262px minmax(0,1fr)!important;gap:28px!important}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation{grid-column:1!important;grid-row:1!important}
body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content{grid-column:2!important;grid-row:1!important}
@media(max-width:880px){
  body.sb-nisarg.woocommerce-account .woocommerce{grid-template-columns:1fr!important}
  body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-navigation{grid-column:1!important;grid-row:1!important}
  body.sb-nisarg.woocommerce-account .woocommerce-MyAccount-content{grid-column:1!important;grid-row:2!important}
}
