/* Tech Bazar v6: storefront only; admin and theme studio remain untouched */
body:not(.admin-app) #shop-header .header-action{background:#303d52!important;color:#fff!important;border-radius:7px!important;min-width:62px!important;min-height:48px!important;padding:6px 9px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;opacity:1!important}
body:not(.admin-app) #shop-header .header-action:hover{background:#2563eb!important}
body:not(.admin-app) #shop-header .header-action svg{stroke:#fff!important;opacity:1!important}
body:not(.admin-app) #shop-header .header-action :is(span,small,b){color:#fff!important;opacity:1!important}
body:not(.admin-app) #unified-category-nav{display:flex!important;background:#fff!important;color:#172033!important;min-height:44px!important;box-shadow:0 2px 10px #15223812!important;z-index:55!important}
body:not(.admin-app) #unified-category-nav .category-branch:hover{background:#eef4ff!important;box-shadow:inset 0 -3px #2563eb!important}
body:not(.admin-app) #unified-category-nav .category-children{border-top-color:#2563eb!important}
body:not(.admin-app) #unified-category-nav .category-children .category-branch:hover{background:#2563eb!important}
body:not(.admin-app) #unified-category-nav .category-children a:hover{color:#2563eb!important;background:#eef4ff!important}
body:not(.admin-app) #unified-category-nav .category-children .category-branch:hover>a{color:white!important}
body:not(.admin-app) #unified-category-nav .category-parent button[aria-expanded=true]{color:#2563eb!important}
/* Override old orange storefront controls, not category arrows or admin editing tools */
body:not(.admin-app) :is(.pd-actions button,.pd-tabs button[aria-selected=true],.collection-back,.collection-products .btn,.collection-products button,.product-grid .btn,.product-grid button,.tb-reset-btn,.tb-pages button,.tb-collection-results button,.pd-related .btn,.pd-related button){background:#171e2b!important;background-image:none!important;color:#fff!important;border-color:#171e2b!important;transition:background .2s ease,transform .2s ease,box-shadow .2s ease!important}
body:not(.admin-app) :is(.pd-actions button,.pd-tabs button[aria-selected=true],.collection-back,.collection-products .btn,.collection-products button,.product-grid .btn,.product-grid button,.tb-reset-btn,.tb-pages button,.tb-collection-results button,.pd-related .btn,.pd-related button):is(:hover,:focus-visible){background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;box-shadow:0 5px 15px #2563eb38!important;transform:translateY(-1px)}
body:not(.admin-app) .tb-pages button[aria-current=page]{background:#2563eb!important}
body:not(.admin-app) :is(.pd-photo .photo-prev,.pd-photo .photo-next,.pd-thumbs button,.pd-quantity button){background:#fff!important;color:#172033!important;border-color:#d9e0e9!important}
body:not(.admin-app) :is(#pd-price>span,.pd-buy .price,.collection-products .price,.product-grid .price,.product-price,.current-price,.sale-price){color:#e11919!important}
body:not(.admin-app) :is(.product-grid,.collection-products) :is(.sale-badge,.sale-label,.badge-sale){background:#00875a!important;color:#fff!important}
body:not(.admin-app) .pd-thumbs button[aria-pressed=true]{border-color:#2563eb!important}
body:not(.admin-app) :is(.pd-tabs button[aria-selected=true],.pd-buy #pd-add){background:#171e2b!important;color:white!important}
body:not(.admin-app) :is(.pd-tabs button[aria-selected=true],.pd-buy #pd-add):hover{background:#2563eb!important}
body:not(.admin-app) #back-top{background:#171e2b!important;color:white!important}
body:not(.admin-app) #back-top:hover{background:#2563eb!important}
body:not(.admin-app) :is(.section-head,.section-heading,.section-title,.section-headline,.collection-heading){border-bottom-color:transparent!important}
body:not(.admin-app) :is(.section-head,.section-heading,.section-title,.section-headline,.collection-heading)::after{display:none!important}
/* Collection sidebar and responsive grid */
.tb-collection-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start;margin:22px 0}
.tb-filter-panel{background:#fff;border:1px solid #e1e5ed;border-radius:9px;padding:17px;position:sticky;top:15px;font-size:13px}
.tb-filter-head,.tb-collection-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tb-filter-head{padding-bottom:14px;border-bottom:1px solid #e5eaf0;margin-bottom:14px}
.tb-filter-head strong{font-size:17px}
.tb-filter-head button{border:0;background:none;color:#2563eb;cursor:pointer;font-size:12px}
.tb-filter-label{display:block;font-weight:600;margin:12px 0 6px}
#tb-filter-search{width:100%;padding:10px;border:1px solid #dbe2ea;border-radius:6px;box-sizing:border-box}
.tb-filter-panel fieldset{border:0;border-top:1px solid #e9edf2;padding:15px 0 6px;margin:14px 0 0;min-width:0}
.tb-filter-panel legend{font-weight:700;padding:0 5px 0 0}
.tb-filter-panel fieldset>label,.tb-brand-options label{display:flex;gap:8px;align-items:center;margin:9px 0;cursor:pointer}
.tb-filter-panel input[type=radio],.tb-filter-panel input[type=checkbox]{accent-color:#2563eb}
#tb-range{width:100%;accent-color:#2563eb}
.tb-price-inputs{display:flex;gap:8px}.tb-price-inputs label{flex:1;min-width:0;color:#657083;font-size:11px}.tb-price-inputs input{display:block;width:100%;box-sizing:border-box;padding:8px 5px;border:1px solid #dbe2ea;border-radius:5px;color:#172033}
.tb-brand-options{max-height:200px;overflow:auto}
.tb-reset-btn{width:100%;padding:11px;border-radius:5px;cursor:pointer}
.tb-collection-results{min-width:0}.tb-collection-tools{background:#fff;border:1px solid #e1e5ed;border-radius:8px;padding:13px 16px;margin-bottom:14px}.tb-collection-tools select{padding:9px;border:1px solid #dbe2ea;border-radius:5px;margin-left:7px}
.tb-collection-results .collection-products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.tb-collection-results .collection-products>*{min-width:0!important;width:auto!important;max-width:none!important}
.tb-collection-results .collection-products .product-card{border:1px solid #e1e5ed!important;border-radius:9px!important;background:#fff!important;overflow:hidden}
.tb-pages{display:flex;justify-content:center;gap:7px;margin:22px 0}.tb-pages button{padding:9px 13px;border-radius:5px;cursor:pointer}
@media(max-width:1100px){.tb-collection-results .collection-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){body:not(.admin-app) #unified-category-nav{display:none!important}.tb-collection-layout{grid-template-columns:1fr}.tb-filter-panel{position:static}.tb-collection-results .collection-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tb-collection-tools{flex-wrap:wrap}}
@media(max-width:420px){.tb-collection-results .collection-products{gap:8px!important}.tb-filter-panel{padding:12px}}
