/* Kandoo Patch 013 — Unified shell + Woo-inspired storefront */
:root{
  --k-bg:#f6f5f3;--k-surface:#fff;--k-ink:#171512;--k-muted:#746f69;--k-line:#e8e4df;
  --k-brown:#8a5a35;--k-brown-dark:#684126;--k-brown-soft:#f2e9e1;--k-black:#171512;
  --k-success:#177245;--k-danger:#b42318;--k-warning:#a76512;--k-radius:16px;
  --k-shadow:0 10px 30px rgba(35,25,18,.06);--k-font:Vazirmatn,"Segoe UI",Tahoma,Arial,sans-serif;
}
html{scroll-behavior:smooth}body{font-family:var(--k-font);background:var(--k-bg);color:var(--k-ink);-webkit-font-smoothing:antialiased}
a{color:var(--k-brown-dark)}a:hover{color:var(--k-black)}
.k-shell-header{position:sticky;top:0;z-index:1050;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--k-line)}
.k-shell-header-inner{max-width:1280px;height:72px;margin:auto;padding:0 20px;display:flex;align-items:center;gap:24px}
.k-shell-brand{display:flex;align-items:center;gap:10px;color:var(--k-black)!important;text-decoration:none;font-weight:900;white-space:nowrap}.k-shell-brand img{width:38px;height:38px;object-fit:contain}.k-shell-brand span{font-size:1.02rem}
.k-shell-nav{display:flex;align-items:center;gap:22px;margin-inline-start:auto}.k-shell-nav a{font-size:.92rem;font-weight:700;text-decoration:none;color:#3e3934}.k-shell-nav a:hover,.k-shell-nav a[aria-current="page"]{color:var(--k-brown)}
.k-shell-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto}.k-shell-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 14px;border:1px solid var(--k-line);border-radius:10px;background:#fff;color:var(--k-black)!important;text-decoration:none;font-weight:800;font-size:.88rem}.k-shell-btn.primary{background:var(--k-black);color:#fff!important;border-color:var(--k-black)}.k-shell-btn:hover{border-color:#c9c2ba;transform:translateY(-1px)}
.k-cart-count{min-width:20px;height:20px;border-radius:999px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;background:var(--k-brown);color:#fff;font-size:.72rem}
.k-shell-menu-btn{display:none;width:42px;height:42px;border:1px solid var(--k-line);border-radius:10px;background:#fff;font-size:1.3rem}
.k-shell-mobile-nav{display:none;padding:8px 16px 16px;border-top:1px solid var(--k-line);background:#fff}.k-shell-mobile-nav.open{display:grid;gap:6px}.k-shell-mobile-nav a{padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--k-ink);font-weight:700}.k-shell-mobile-nav a:hover{background:#f6f2ee}
.k-shell-footer{margin-top:64px;border-top:1px solid var(--k-line);background:#fff}.k-shell-footer-inner{max-width:1280px;margin:auto;padding:38px 20px 22px;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}.k-shell-footer-brand{font-size:1.1rem;font-weight:900;margin-bottom:8px}.k-shell-footer p,.k-shell-footer a{font-size:.88rem;color:var(--k-muted);text-decoration:none;line-height:1.9}.k-shell-footer h3{font-size:.9rem;font-weight:900;margin-bottom:10px}.k-shell-footer-links{display:grid;gap:5px}.k-shell-footer-bottom{max-width:1280px;margin:auto;padding:14px 20px 24px;color:#938d86;font-size:.78rem;border-top:1px solid #f0ece8}
/* Admin / supporter shell */
.k-admin-sidebar{position:fixed;right:0;top:0;bottom:0;width:268px;background:#181512;color:#fff;z-index:1060;overflow:auto;padding:18px 14px}.k-admin-brand{display:flex;align-items:center;gap:10px;padding:6px 8px 18px;color:#fff!important;text-decoration:none;font-weight:900}.k-admin-brand img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.k-admin-section{margin:12px 8px 6px;color:#8f877f;font-size:.71rem;font-weight:900}.k-admin-sidebar nav{display:grid;gap:3px}.k-admin-sidebar nav a{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:9px;color:#d8d2cc;text-decoration:none;font-size:.87rem;font-weight:700}.k-admin-sidebar nav a:hover,.k-admin-sidebar nav a[aria-current="page"]{background:#2b241f;color:#fff}.k-admin-sidebar nav a[aria-current="page"]{box-shadow:inset -3px 0 var(--k-brown)}
.k-admin-topbar{position:sticky;top:0;z-index:1035;height:64px;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-bottom:1px solid var(--k-line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.k-admin-title{font-weight:900;font-size:1rem}.k-admin-top-actions{display:flex;align-items:center;gap:8px}.k-admin-open{display:none;border:1px solid var(--k-line);background:#fff;border-radius:9px;width:40px;height:40px}.k-shell-admin,.k-shell-supporter{padding-right:268px}.k-shell-admin>.container,.k-shell-admin>.container-fluid,.k-shell-admin>main,.k-shell-supporter>.container,.k-shell-supporter>.container-fluid,.k-shell-supporter>main{max-width:calc(100vw - 268px)}.k-shell-admin .k-ui-dock,.k-shell-supporter .k-ui-dock{display:none!important}.k-admin-backdrop{display:none}
.k-admin-footer{padding:28px 24px;color:#8b847d;font-size:.78rem;text-align:center}
/* Normalize legacy panels */
.k-shell-admin .card,.k-shell-admin .panel,.k-shell-admin .store-panel,.k-shell-supporter .card,.k-shell-supporter .panel{border:1px solid var(--k-line)!important;box-shadow:none!important;border-radius:14px!important;background:#fff!important}.k-shell-admin .btn,.k-shell-supporter .btn{border-radius:9px}.k-shell-admin .form-control,.k-shell-admin .form-select,.k-shell-supporter .form-control,.k-shell-supporter .form-select{border-radius:9px;border-color:#ddd7d0;min-height:42px}.k-shell-admin table,.k-shell-supporter table{background:#fff}.k-shell-admin .table>:not(caption)>*>*,.k-shell-supporter .table>:not(caption)>*>*{padding:.78rem .7rem;border-color:#eee9e4}
/* User pages */
.k-shell-user main,.k-shell-user>.container,.k-shell-user>.container-fluid{max-width:1180px}.k-shell-user .card,.k-shell-user .store-panel{border-radius:14px!important;border:1px solid var(--k-line)!important;box-shadow:none!important}.k-shell-user .btn{border-radius:9px}
/* Homepage existing nav/footer modernization */
body.k-shell-home .navbar{display:none!important}body.k-shell-home>.footer,body.k-shell-home footer.footer{display:none!important}
/* Store / Woo-inspired */
body.k-shell-store{background:#faf9f7}.k-store-breadcrumb{max-width:1280px;margin:18px auto 0;padding:0 18px;font-size:.82rem;color:var(--k-muted)}.k-store-breadcrumb a{text-decoration:none;color:var(--k-muted)}
body.k-shell-store .store-shell{max-width:1280px;padding:24px 18px 70px}.k-shell-store .store-toolbar{align-items:flex-end;margin-bottom:24px}.k-shell-store .store-title{font-size:2rem;font-weight:900;letter-spacing:-.03em}.k-shell-store .store-panel{border-radius:14px!important;border:1px solid var(--k-line)!important;box-shadow:none!important;background:#fff!important}.k-shell-store .store-filter{background:#fff}.k-shell-store .store-grid{gap:22px}.k-shell-store .store-card{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible}.k-shell-store .store-card:hover{transform:none!important;box-shadow:none!important}.k-shell-store .store-media{border-radius:14px;background:#f0eeeb;overflow:hidden;aspect-ratio:4/5}.k-shell-store .store-media img{transition:transform .35s ease}.k-shell-store .store-card:hover .store-media img{transform:scale(1.025)}.k-shell-store .store-card-body{padding:13px 2px 10px}.k-shell-store .store-card h2{font-size:.98rem!important;margin-bottom:7px!important}.k-shell-store .store-card .small.text-muted.mb-3{min-height:39px;color:#7f7973!important}.k-shell-store .store-price{font-size:1rem;font-weight:900}.k-shell-store .store-consumer{font-size:.82rem}.k-shell-store .store-badge,.k-shell-store .store-featured{border-radius:7px!important;padding:6px 8px!important;font-size:.7rem!important}.k-shell-store .store-card .btn{border-radius:9px!important;min-height:42px;font-weight:800}.k-shell-store .btn-dark{background:#171512;border-color:#171512}.k-shell-store .btn-dark:hover{background:var(--k-brown-dark);border-color:var(--k-brown-dark)}
/* Product detail */
.k-shell-store .store-gallery{gap:16px}.k-shell-store .store-main-image{border-radius:14px!important;background:#f2f0ed}.k-shell-store .store-thumb{border-radius:10px!important}.k-shell-store .row.g-4>.col-lg-6>.store-panel{padding:30px!important;position:sticky;top:96px}.k-shell-store .variant-chip{border-radius:9px!important}.k-shell-store .store-sticky-cart{border-radius:12px!important;box-shadow:0 8px 28px rgba(35,25,18,.08)!important}.k-shell-store .form-control,.k-shell-store .form-select{border-radius:9px;min-height:44px;border-color:#ddd7d0}.k-shell-store .form-control:focus,.k-shell-store .form-select:focus{border-color:#ad8768;box-shadow:0 0 0 .2rem rgba(138,90,53,.10)}
/* Cart */
.k-shell-store .store-table{margin-bottom:0}.k-shell-store .store-table th{font-size:.78rem;color:#746f69;border-bottom:1px solid var(--k-line);font-weight:900}.k-shell-store .store-table td{padding:15px 10px;border-color:#eee9e4}.k-shell-store .store-table img{width:70px;height:84px;border-radius:10px!important}.k-shell-store .store-empty{border:1px dashed #d9d2ca!important;background:#fff!important;border-radius:14px!important}
/* Store admin: cleaner Woo-like workspace */
.k-shell-admin .admin-store-nav{gap:6px;margin:0 0 14px}.k-shell-admin .admin-store-nav a{border-radius:8px!important;background:#fff;border:1px solid var(--k-line);padding:7px 10px;text-decoration:none;color:#3f3934;font-weight:700;font-size:.83rem}.k-shell-admin .admin-store-nav a:hover{border-color:#b9afa6;color:var(--k-brown-dark)}.k-shell-admin .store-stat{border:1px solid var(--k-line);border-radius:12px!important;box-shadow:none;background:#fff}.k-shell-admin .store-stat b{font-size:1.35rem}.k-shell-admin .store-table img{border-radius:9px!important}.k-shell-admin .gallery-admin img{border-radius:10px!important}
/* Hide redundant primitive back/home buttons near top once shell exists */
.k-shell-admin body>.btn:first-child{display:none}
/* Responsive */
@media(max-width:991px){
 .k-shell-header-inner{height:64px;padding:0 12px}.k-shell-nav{display:none}.k-shell-menu-btn{display:inline-flex;align-items:center;justify-content:center}.k-shell-brand span{display:none}.k-shell-actions{margin-inline-start:auto}.k-shell-btn.account span.label{display:none}
 .k-shell-footer-inner{grid-template-columns:1fr 1fr}.k-admin-sidebar{transform:translateX(105%);transition:.22s transform}.k-admin-sidebar.open{transform:translateX(0)}.k-shell-admin,.k-shell-supporter{padding-right:0}.k-shell-admin>.container,.k-shell-admin>.container-fluid,.k-shell-admin>main,.k-shell-supporter>.container,.k-shell-supporter>.container-fluid,.k-shell-supporter>main{max-width:100%}.k-admin-open{display:inline-flex;align-items:center;justify-content:center}.k-admin-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.36);z-index:1055}.k-admin-backdrop.open{display:block}
 .k-shell-store .row.g-4>.col-lg-6>.store-panel{position:static;padding:20px!important}
}
@media(max-width:575px){
 .k-shell-actions .desktop-only{display:none}.k-shell-footer-inner{grid-template-columns:1fr;gap:18px;padding-top:28px}.k-shell-footer{margin-top:40px}.k-shell-store .store-shell{padding:18px 10px 60px}.k-shell-store .store-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px}.k-shell-store .store-media{aspect-ratio:1/1.2}.k-shell-store .store-card h2{font-size:.9rem!important}.k-shell-store .store-card .small.text-muted.mb-3{display:none}.k-shell-store .store-price{font-size:.9rem}.k-shell-store .store-card .btn{font-size:.78rem;padding:.45rem .35rem}.k-shell-store .store-toolbar{align-items:flex-start}.k-shell-store .store-title{font-size:1.55rem}
}
