/*
Theme Name: TechStore Electronics
Description: Dynamic WooCommerce theme for computers and electronics.
Version: 1.0.23.1
Author: OpenAI
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: techstore
License: GPL-2.0-or-later
*/
:root{--primary:#2563eb;--primary-dark:#1d4ed8;--accent:#f59e0b;--bg:#f8fafc;--card:#fff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--radius:16px;--shadow:0 10px 30px rgba(15,23,42,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,calc(100% - 32px));margin:auto}.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border)}.topbar{background:#062847;color:#fff;font-size:13px}.topbar .container{display:flex;justify-content:space-between;padding:8px 0;gap:15px}.header-main{padding:16px 0}.header-row{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center}.site-logo{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:900;white-space:nowrap}.site-logo img{max-height:48px;width:auto}.logo-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--primary);color:#fff}.search-form{display:flex;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.search-form select,.search-form input{border:0;outline:0;background:transparent;padding:12px}.search-form select{border-right:1px solid var(--border)}.search-form input{flex:1;min-width:100px}.search-form button{border:0;background:var(--primary);color:#fff;padding:0 20px;font-weight:800;cursor:pointer}.header-actions{display:flex;gap:8px;align-items:center}.header-action{padding:10px 12px;border-radius:10px;background:#f1f5f9;font-weight:700}.cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:99px;background:var(--accent);color:#111827;font-size:12px}.main-nav{border-top:1px solid var(--border)}
/*.category-nav{display:flex;gap:20px;overflow:auto;padding:11px 0;white-space:nowrap}.category-nav a{font-size:14px;font-weight:800}*/
.hero{padding:65px 0;background:linear-gradient(135deg,#eff6ff,#fff)}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center}.hero h1{font-size:clamp(40px,6vw,68px);line-height:1.02;margin:10px 0 20px}.hero p{font-size:18px;color:var(--muted);max-width:650px}.eyebrow{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:var(--primary)}.hero-media{overflow:hidden;border-radius:24px;background:#e2e8f0;box-shadow:var(--shadow)}.hero-media img{width:100%;aspect-ratio:4/3;object-fit:cover}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:12px 18px;font-weight:900}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-outline{border:1px solid var(--border);background:#fff}.section{padding:56px 0}.section-alt{background:#fff}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-head h2{font-size:32px;line-height:1.1;margin:5px 0}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.category-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:center;transition:.2s}.category-card:hover,.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.category-card img{width:100%;aspect-ratio:1;object-fit:contain;margin-bottom:10px}.category-card h3{font-size:15px;margin:4px 0}.category-card span{font-size:12px;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.product-card{position:relative;background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:.2s}.product-thumb{position:relative;padding:16px}.product-thumb img{width:100%;aspect-ratio:1;object-fit:contain}.badge{position:absolute;top:12px;left:12px;background:var(--accent);border-radius:99px;padding:5px 9px;font-size:11px;font-weight:900}.badge.out{background:#ef4444;color:#fff}.product-info{padding:16px}.product-title{display:block;font-weight:800;min-height:48px}.product-rating{margin:7px 0}.product-price{font-size:19px;font-weight:900;margin:8px 0 14px}.product-price del{color:#94a3b8;font-size:13px;margin-right:5px}.product-actions .button{display:block;text-align:center;border-radius:9px;padding:10px;background:var(--primary);color:#fff;font-weight:800}.sale-banner{background:#0f172a;color:#fff;border-radius:24px;padding:40px}.site-footer{background:#062847;color:#cbd5e1;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px}.site-footer h3{color:#fff}.site-footer a{color:#cbd5e1}.footer-bottom{border-top:1px solid #334155;margin-top:35px;padding-top:18px;font-size:13px}.breadcrumb{padding:18px 0;color:var(--muted);font-size:13px}.empty-state{text-align:center;padding:50px;background:#fff;border:1px solid var(--border);border-radius:16px}.woocommerce .site-main{padding-bottom:50px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:20px}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px}.woocommerce div.product{background:#fff;border-radius:var(--radius);padding:25px}.woocommerce span.onsale{background:var(--accent);color:#111827}.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{background:var(--primary);color:#fff;border-radius:9px}.woocommerce-cart-form,.cart_totals,.woocommerce-checkout #customer_details,.woocommerce-checkout-review-order{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px}@media(max-width:1000px){.category-grid{grid-template-columns:repeat(3,1fr)}.product-grid,.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}.header-row{grid-template-columns:auto 1fr}.header-actions{grid-column:1/-1;justify-content:flex-end}.hero-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.container{width:calc(100% - 24px)}.topbar .container{flex-direction:column}.header-row{grid-template-columns:1fr}.header-actions{grid-column:auto}.search-form select{display:none}.category-grid,.product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.hero{padding:40px 0}.section{padding:40px 0}.section-head{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}}

/* AJAX shop filters */
.shop-heading{margin-bottom:28px}.shop-heading h1{font-size:42px;line-height:1.1;margin:6px 0}.shop-description{color:var(--muted);max-width:720px;margin:0}.techstore-shop-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start}.techstore-filters{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;position:sticky;top:105px;max-height:calc(100vh - 125px);overflow:auto}.filter-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:16px}.filter-header h2{font-size:20px;margin:0}.techstore-clear-filters{border:0;background:none;color:var(--primary);font-weight:800;cursor:pointer;padding:4px}.filter-group{border-bottom:1px solid var(--border);padding:16px 0}.filter-group:last-child{border-bottom:0}.filter-group h3,.filter-group>label{display:block;font-size:14px;font-weight:900;margin:0 0 10px}.filter-search input,.price-fields input{width:100%;border:1px solid var(--border);border-radius:9px;padding:10px 11px;outline:0;background:#fff}.filter-search input:focus,.price-fields input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.filter-options{display:grid;gap:8px}.filter-option{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.filter-option input{accent-color:var(--primary);width:16px;height:16px;flex:0 0 auto}.filter-option span{flex:1}.filter-option small{color:var(--muted);font-size:11px}.price-fields{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px}.price-fields input{min-width:0}.shop-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 15px}.techstore-result-count{font-weight:800;font-size:14px}.sort-control{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800}.sort-control select{border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:#fff}.techstore-filter-products{position:relative;min-height:180px}.techstore-filter-item{min-width:0}.techstore-loading{grid-column:1/-1;display:grid;place-items:center;min-height:180px;color:var(--muted);font-weight:800}.techstore-filter-products.is-loading{opacity:.55;pointer-events:none}.techstore-no-results{grid-column:1/-1;background:#fff;border:1px solid var(--border);border-radius:16px;padding:55px 25px;text-align:center}.techstore-no-results strong{font-size:20px}.techstore-no-results p{color:var(--muted);margin:8px 0 0}.techstore-pagination{margin-top:28px}.techstore-page-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.techstore-page-btn{min-width:40px;height:40px;padding:0 12px;border:1px solid var(--border);background:#fff;border-radius:9px;font-weight:800;cursor:pointer}.techstore-page-btn:hover,.techstore-page-btn.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.page-dots{display:grid;place-items:center;width:40px;height:40px;color:var(--muted)}
@media(max-width:900px){.techstore-shop-layout{grid-template-columns:1fr}.techstore-filters{position:relative;top:auto;max-height:none}.filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}.techstore-filter-products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.shop-heading h1{font-size:34px}.shop-toolbar{align-items:flex-start;flex-direction:column}.sort-control{width:100%;justify-content:space-between}.sort-control select{flex:1}.filter-options{grid-template-columns:1fr}.techstore-filter-products{grid-template-columns:repeat(2,1fr)!important}}

/* Shop filter widgets */
.techstore-widget-sidebar .widget{margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid var(--border)}
.techstore-widget-sidebar .widget:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.techstore-widget-sidebar .widget h3{font-size:14px;font-weight:900;margin:0 0 12px}
.techstore-widget-options{display:grid;gap:9px;max-height:260px;overflow:auto;padding-right:3px}
.techstore-widget-option{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;line-height:1.35}
.techstore-widget-option input{accent-color:var(--primary);width:16px;height:16px;flex:0 0 auto}
.techstore-widget-option span{flex:1}
.techstore-widget-option small{color:var(--muted);font-size:11px}
.techstore-widget-price .techstore-price-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.techstore-widget-price input{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:9px;padding:10px 9px;background:#fff}
.techstore-widget-price input:focus{border-color:var(--primary);outline:0;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.techstore-price-hint{font-size:11px;color:var(--muted);margin-top:8px}
.techstore-widget-notice{font-size:13px;color:var(--muted);line-height:1.5}

.techstore-cart-page{background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px}.techstore-cart-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.techstore-cart-header h1{margin:5px 0 0;font-size:34px}.techstore-cart-page table{width:100%;border-collapse:collapse}.techstore-cart-page th,.techstore-cart-page td{padding:14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.techstore-cart-page .product-thumbnail img{width:80px;height:80px;object-fit:contain}.techstore-cart-page .product-remove{width:40px}.techstore-cart-page .remove{font-size:25px;color:#ef4444}.techstore-cart-page .quantity .qty{width:75px;padding:8px;border:1px solid var(--border);border-radius:8px}.techstore-cart-page .actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.techstore-cart-page .coupon{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.techstore-cart-page .coupon .input-text{padding:10px;border:1px solid var(--border);border-radius:8px}.techstore-cart-page .cart-collaterals{margin-top:28px}.techstore-cart-page .cart_totals{margin-left:auto;max-width:460px}.woocommerce .cart-collaterals .checkout-button{background:var(--primary);color:#fff;border-radius:9px;padding:13px 18px;font-weight:800}@media(max-width:680px){.techstore-cart-header{align-items:flex-start;flex-direction:column}.techstore-cart-page{padding:14px}.techstore-cart-page .product-thumbnail{display:none}.techstore-cart-page th,.techstore-cart-page td{padding:9px 5px;font-size:13px}}

/* Collapsible WooCommerce attribute filter headings */
.techstore-filter-dropdown{border:0;margin:0}
.techstore-filter-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:14px;font-weight:900;padding:0 0 12px}
.techstore-filter-dropdown>summary::-webkit-details-marker{display:none}
.techstore-filter-chevron{font-size:18px;line-height:1;transition:transform .18s ease;color:var(--muted)}
.techstore-filter-dropdown:not([open]) .techstore-filter-chevron{transform:rotate(-90deg)}
.techstore-filter-dropdown .techstore-widget-options{padding-top:2px}

/* Checkout / payment gateway styling */
.techstore-payment-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border);margin-bottom:14px}
.techstore-payment-heading span{font-size:20px;font-weight:900}
.techstore-payment-heading small{color:var(--muted);font-size:12px}
.techstore-checkout #payment{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px}
.techstore-checkout #payment ul.payment_methods{border:0;margin:0;padding:0;list-style:none}
.techstore-checkout #payment ul.payment_methods li{padding:12px 0;border-bottom:1px solid var(--border)}
.techstore-checkout #payment ul.payment_methods li:last-child{border-bottom:0}
.techstore-checkout #payment .payment_box{background:#f8fafc;border-radius:10px;margin:10px 0 0;padding:14px}
.techstore-checkout #payment .place-order{padding:18px 0 0;margin:0}
.techstore-checkout #payment .place-order .button{width:100%;font-size:16px;padding:14px 18px}
.woocommerce form .form-row select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce div.product form.cart .variations select{border:1px solid var(--border);border-radius:9px;padding:10px 12px;background:#fff}
.woocommerce div.product form.cart .variations th.label{vertical-align:middle;text-align:left}
.woocommerce div.product form.cart .variations th.label label{font-weight:800}

/* Kapee-style dynamic mega menu */
.mega-nav-row{display:flex;align-items:center;position:relative;min-height:48px}.mega-shop-link{display:flex;align-items:center;gap:8px;padding:13px 18px;background:var(--primary);color:#fff;font-weight:900;border-radius:8px 8px 0 0;white-space:nowrap}.mega-icon{font-size:17px}.mega-chevron{font-size:12px;transition:transform .2s}.kapee-mega-menu{position:absolute;left:0;right:0;top:100%;z-index:150;visibility:hidden;opacity:0;transform:translateY(8px);transition:opacity .18s,transform .18s,visibility .18s}.mega-nav-row:hover .kapee-mega-menu,.mega-shop-link:focus+.kapee-mega-menu,.kapee-mega-menu:hover{visibility:visible;opacity:1;transform:translateY(0)}.mega-nav-row:hover .mega-chevron{transform:rotate(180deg)}.mega-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.15fr;gap:22px;background:#fff;border:1px solid var(--border);border-top:3px solid var(--primary);border-radius:0 0 14px 14px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:24px}.mega-column{min-width:0}.mega-parent{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:900;margin-bottom:9px;color:var(--text)}.mega-parent img{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#f8fafc}.mega-column ul{list-style:none;margin:0;padding:0 0 0 43px}.mega-column li{margin:7px 0}.mega-column li a{color:var(--muted);font-size:13px}.mega-column li a:hover{color:var(--primary)}.mega-feature{background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #dbeafe;border-radius:12px;padding:20px;display:flex;flex-direction:column;justify-content:center;min-height:150px}.mega-feature span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--primary);font-weight:900}.mega-feature strong{font-size:20px;line-height:1.2;margin:8px 0 14px}.mega-feature a{font-weight:900;color:var(--primary)}.category-nav{flex:1;min-width:0;padding-left:20px}.category-nav a{display:inline-block}.main-nav{position:relative}.main-nav .container{position:relative}@media(max-width:900px){.mega-panel{grid-template-columns:repeat(3,minmax(0,1fr));max-height:70vh;overflow:auto}.mega-feature{grid-column:span 3}.category-nav{overflow-x:auto}.mega-shop-link{font-size:13px;padding:12px}}@media(max-width:680px){.mega-nav-row{display:block}.mega-shop-link{border-radius:8px;margin:8px 0}.kapee-mega-menu{position:static;display:none;opacity:1;visibility:visible;transform:none}.mega-nav-row:hover .kapee-mega-menu{display:block}.mega-panel{grid-template-columns:1fr 1fr;padding:16px;gap:14px}.mega-feature{grid-column:span 2}.category-nav{padding:8px 0}.main-nav .container{width:calc(100% - 24px)}}

/* Front-page customer review + brand sliders */
.techstore-reviews-section,.techstore-brands-section{overflow:hidden}.slider-controls{display:flex;gap:7px}.slider-controls button{width:38px;height:38px;border:1px solid var(--border);background:#fff;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}.slider-controls button:hover{background:var(--primary);color:#fff;border-color:var(--primary)}.techstore-review-slider,.techstore-brand-slider{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:5px 2px 14px}.techstore-review-slider::-webkit-scrollbar,.techstore-brand-slider::-webkit-scrollbar{display:none}.techstore-review-card{flex:0 0 calc((100% - 36px)/3);min-width:280px;scroll-snap-align:start;background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:var(--shadow)}.review-stars{font-size:17px;letter-spacing:2px;margin-bottom:12px}.review-stars span{color:#cbd5e1}.review-content{font-size:15px;min-height:72px;margin:0 0 20px}.review-author{display:flex;flex-direction:column;border-top:1px solid var(--border);padding-top:13px}.review-author small{color:var(--muted);margin-top:2px}.techstore-brand-card{flex:0 0 170px;scroll-snap-align:start;background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px 12px;text-align:center;transition:.2s}.techstore-brand-card:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:var(--shadow)}.brand-logo-wrap{height:70px;display:grid;place-items:center;margin-bottom:10px}.brand-logo-wrap img{max-height:62px;max-width:125px;object-fit:contain;margin:auto}.brand-logo-wrap span{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#eff6ff;color:var(--primary);font-size:23px;font-weight:900}.techstore-brand-card strong{font-size:14px}.techstore-gateway-page{max-width:700px}.techstore-gateway-page form{background:#fff;border:1px solid var(--border);border-radius:16px;padding:25px;text-align:center}.techstore-gateway-page form p{color:var(--muted)}
@media(max-width:900px){.techstore-review-card{flex-basis:calc((100% - 18px)/2)}}@media(max-width:600px){.techstore-review-card{flex-basis:88%}.techstore-brand-card{flex-basis:145px}.section-head .slider-controls{margin-top:4px}}


/* v1.0.8 front-page review slider */
.techstore-reviews-section .section-head{align-items:center}.techstore-review-slider{scroll-behavior:smooth}.techstore-review-card{display:flex;flex-direction:column}.review-stars{color:#f59e0b}.review-product-link{font-size:12px;color:var(--primary);font-weight:800;margin-top:8px}.review-verified{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#15803d;margin-top:8px;font-weight:800}.review-verified:before{content:'✓';display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#dcfce7}.techstore-reviews-empty{background:#fff;border:1px dashed var(--border);border-radius:16px;padding:28px;color:var(--muted)}


/* Dynamic Kapee-style homepage info/service boxes */
.techstore-info-boxes{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.techstore-info-box-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.techstore-info-box-column{min-width:0;border-right:1px solid var(--border)}
.techstore-info-box-column:last-child{border-right:0}
.techstore-info-box{min-height:125px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:inherit;transition:color .2s ease,background .2s ease,transform .2s ease}
a.techstore-info-box:hover{color:var(--primary);background:#f8fafc}
.techstore-info-box-icon{height:42px;display:grid;place-items:center;margin-bottom:10px;font-size:31px;color:var(--primary)}
.techstore-info-box-icon i{font-style:normal;line-height:1}
.techstore-info-box-content h5{margin:0;font-size:15px;font-weight:800;line-height:1.3}
@media(max-width:800px){.techstore-info-box-grid{grid-template-columns:repeat(2,1fr)}.techstore-info-box-column:nth-child(2){border-right:0}.techstore-info-box-column:nth-child(-n+2){border-bottom:1px solid var(--border)}}
@media(max-width:480px){.techstore-info-box{min-height:105px;padding:18px 10px}.techstore-info-box-icon{font-size:27px;height:36px}.techstore-info-box-content h5{font-size:13px}}


@media (prefers-reduced-motion:reduce){.kapee-mega-menu,.mega-chevron{transition:none}}

/* TechStore v1.0.18 - responsive customer registration */
.techstore-registration-wrap{max-width:760px;margin:40px auto;padding:0 16px}
.techstore-registration-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:32px;box-shadow:0 10px 30px rgba(15,23,42,.07)}
.techstore-registration-heading{margin-bottom:24px}
.techstore-registration-heading h2{margin:8px 0 6px;font-size:clamp(25px,4vw,34px);line-height:1.15}
.techstore-registration-heading p{margin:0;color:#64748b}
.techstore-registration-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f1f5f9;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.techstore-registration-fields{margin:0 0 8px;padding:20px 0 4px;border-top:1px solid #e5e7eb}
.techstore-registration-fields h3{margin:0 0 14px;font-size:18px}
.techstore-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;clear:both}
.techstore-registration-wrap .form-row{margin-bottom:16px}
.techstore-registration-wrap .form-row label{display:block;margin-bottom:7px;font-weight:600}
.techstore-registration-wrap .input-text,.techstore-registration-wrap input[type=text],.techstore-registration-wrap input[type=email],.techstore-registration-wrap input[type=password],.techstore-registration-wrap input[type=tel]{width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;box-sizing:border-box;background:#fff}
.techstore-registration-wrap .woocommerce-form-register__submit{width:100%;min-height:48px;border:0;border-radius:10px;font-weight:700;cursor:pointer}
.techstore-registration-notice{max-width:760px;margin:30px auto;padding:18px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.techstore-registration-notice a{font-weight:700}
.header-register{font-weight:700}
@media (max-width:767px){.techstore-registration-wrap{margin:20px auto;padding:0 12px}.techstore-registration-card{padding:22px 16px;border-radius:14px}.techstore-register-grid{grid-template-columns:1fr;gap:0}.techstore-registration-heading{margin-bottom:18px}}
@media (prefers-reduced-motion:reduce){.techstore-registration-wrap *{scroll-behavior:auto!important;transition:none!important}}

/* =========================================================
   TechStore Registration Form — v1.0.19
   Responsive ecommerce account/registration styling
   ========================================================= */
.techstore-registration-wrap{width:100%;padding:48px 20px;background:linear-gradient(180deg,#f7f9fc 0%,#fff 100%);box-sizing:border-box}
.techstore-registration-card{width:min(100%,720px);margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 18px 55px rgba(15,23,42,.10);overflow:hidden}
.techstore-registration-heading{padding:32px 36px 24px;border-bottom:1px solid #eef0f3}
.techstore-registration-badge{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:#eef6ff;color:#1769aa;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.techstore-registration-heading h2{margin:12px 0 7px;font-size:30px;line-height:1.2;font-weight:800;color:#111827}
.techstore-registration-heading p{margin:0;color:#667085;font-size:15px;line-height:1.6}
.techstore-registration-card form{padding:28px 36px 34px}
.techstore-registration-card .form-row{margin:0 0 18px}
.techstore-registration-card label{display:block;margin:0 0 7px;font-size:14px;font-weight:650;line-height:1.4;color:#1f2937}
.techstore-registration-card label .required{color:#dc2626;text-decoration:none}
.techstore-registration-card input[type=text],
.techstore-registration-card input[type=email],
.techstore-registration-card input[type=password],
.techstore-registration-card input[type=tel]{width:100%;min-height:48px;padding:12px 14px;border:1px solid #d5dae1;border-radius:10px;background:#fff;color:#111827;font-size:15px;line-height:1.4;outline:0;box-sizing:border-box;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.techstore-registration-card input:focus{border-color:#1677ff;box-shadow:0 0 0 4px rgba(22,119,255,.12);background:#fff}
.techstore-registration-card .woocommerce-form__label-for-checkbox{display:flex;gap:9px;align-items:flex-start;font-weight:400}
.techstore-registration-card input[type=checkbox]{margin-top:3px;accent-color:#1677ff}
.techstore-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;clear:both}
.techstore-registration-card .woocommerce-form-row{width:100%;float:none}
.techstore-registration-card .woocommerce-privacy-policy-text,.techstore-registration-card .woocommerce-terms-and-conditions-checkbox-text{font-size:13px;line-height:1.6;color:#667085}
.techstore-registration-card .woocommerce-form__submit,
.techstore-registration-card button[type=submit],
.techstore-registration-card input[type=submit]{width:100%;min-height:50px;margin-top:8px;border:0;border-radius:10px;background:#111827;color:#fff;font-size:15px;font-weight:750;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.techstore-registration-card .woocommerce-form__submit:hover,
.techstore-registration-card button[type=submit]:hover,
.techstore-registration-card input[type=submit]:hover{background:#2563eb;box-shadow:0 8px 22px rgba(37,99,235,.22);transform:translateY(-1px)}
.techstore-registration-card .woocommerce-form__submit:focus-visible,
.techstore-registration-card button[type=submit]:focus-visible,
.techstore-registration-card input[type=submit]:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}
.techstore-registration-card .woocommerce-error,.techstore-registration-card .woocommerce-message,.techstore-registration-card .woocommerce-info{margin:0 36px 20px;border-radius:10px}
.techstore-registration-notice{max-width:720px;margin:40px auto;padding:18px 20px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1e3a8a}
.techstore-registration-notice a{font-weight:700;margin-left:8px}
@media (max-width:767px){
 .techstore-registration-wrap{padding:24px 12px}
 .techstore-registration-card{border-radius:15px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
 .techstore-registration-heading{padding:24px 20px 20px}
 .techstore-registration-heading h2{font-size:25px}
 .techstore-registration-card form{padding:22px 20px 26px}
 .techstore-register-grid{grid-template-columns:1fr;gap:0}
 .techstore-registration-card .woocommerce-error,.techstore-registration-card .woocommerce-message,.techstore-registration-card .woocommerce-info{margin-left:20px;margin-right:20px}
}
@media (max-width:420px){
 .techstore-registration-wrap{padding:14px 8px}
 .techstore-registration-heading{padding:20px 16px 17px}
 .techstore-registration-card form{padding:18px 16px 22px}
 .techstore-registration-heading h2{font-size:22px}
 .techstore-registration-heading p{font-size:14px}
 .techstore-registration-card input[type=text],.techstore-registration-card input[type=email],.techstore-registration-card input[type=password],.techstore-registration-card input[type=tel]{min-height:46px;font-size:16px}
 .techstore-registration-card .woocommerce-error,.techstore-registration-card .woocommerce-message,.techstore-registration-card .woocommerce-info{margin-left:16px;margin-right:16px}
}
@media (prefers-reduced-motion:reduce){.techstore-registration-card input,.techstore-registration-card button,.techstore-registration-card input[type=submit]{transition:none}}

/* v1.0.20: ensure WordPress primary menu items are visible and clickable */
/*.category-nav{display:flex;align-items:center;gap:18px;flex-wrap:nowrap}
.category-nav>.primary-menu-list,.category-nav>.menu,.category-nav>div{display:flex;align-items:center;gap:18px;list-style:none;margin:0;padding:0;min-width:0}
.category-nav ul{display:flex;align-items:center;gap:18px;list-style:none;margin:0;padding:0}
.category-nav li{position:relative;list-style:none;margin:0;padding:0}
.category-nav li a,.category-nav>.primary-menu-list a,.category-nav>.menu a{display:inline-flex;align-items:center;min-height:38px;padding:7px 0;color:var(--text);font-size:14px;font-weight:800;white-space:nowrap}
.category-nav li a:hover,.category-nav li.current-menu-item>a,.category-nav li.current_page_item>a{color:var(--primary)}
.category-nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:180;min-width:190px;flex-direction:column;align-items:stretch;gap:0;padding:8px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}
.category-nav li:hover>.sub-menu,.category-nav li:focus-within>.sub-menu{display:flex}
.category-nav .sub-menu a{display:flex;padding:9px 12px;white-space:normal}
@media(max-width:900px){.category-nav{flex-wrap:wrap;gap:10px 16px}.category-nav>ul,.category-nav>div,.category-nav ul{gap:10px 16px}}
@media(max-width:680px){.category-nav{align-items:flex-start;flex-wrap:wrap;white-space:normal}.category-nav>ul,.category-nav>div,.category-nav ul{flex-wrap:wrap;gap:6px 14px}.category-nav li a{min-height:34px}.category-nav .sub-menu{position:static;box-shadow:none;margin:0 0 8px 10px}}
*/
/* Company profile and social links */
.topbar-contact{display:flex;gap:16px;flex-wrap:wrap}.topbar-contact a{color:inherit}.company-detail{display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere}.company-detail>span{flex:0 0 18px;color:#f59e0b}.techstore-social-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.techstore-social-links .social-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #475569;border-radius:50%;background:rgba(255,255,255,.06);color:#fff;font-size:16px;font-weight:800;transition:background .2s ease,transform .2s ease}.techstore-social-links .social-icon:hover,.techstore-social-links .social-icon:focus{background:var(--primary);color:#fff;transform:translateY(-2px)}.footer-company p{overflow-wrap:anywhere}@media(max-width:680px){.topbar-contact{gap:8px;flex-direction:column}.techstore-social-links .social-icon{width:36px;height:36px}}


/* Responsive front-page dual promotional banners and YouTube video */
.techstore-promo-banners{padding-top:12px}
.techstore-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.techstore-promo-banner{position:relative;min-width:0;min-height:250px;overflow:hidden;border-radius:var(--radius);background:#0f172a;isolation:isolate;box-shadow:var(--shadow)}
.techstore-promo-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .35s ease}
.techstore-promo-banner:hover>img{transform:scale(1.035)}
.techstore-promo-banner:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(15,23,42,.88),rgba(15,23,42,.45) 58%,rgba(15,23,42,.08))}
.techstore-promo-overlay{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:250px;padding:clamp(20px,3vw,36px);color:#fff;max-width:85%}
.techstore-promo-overlay h2{font-size:clamp(23px,3vw,36px);line-height:1.12;margin:0 0 10px;color:#fff}
.techstore-promo-overlay p{font-size:15px;margin:0 0 18px;color:#f1f5f9}
.techstore-video-section .section-head{margin-bottom:20px}
.techstore-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#0f172a;border-radius:var(--radius);box-shadow:var(--shadow)}
.techstore-video-frame iframe,.techstore-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0}
.techstore-video-frame>div{width:100%;height:100%}
.techstore-video-frame>div iframe{position:absolute;width:100%;height:100%}
@media(max-width:680px){.techstore-promo-grid{grid-template-columns:1fr;gap:14px}.techstore-promo-banner,.techstore-promo-overlay{min-height:210px}.techstore-promo-overlay{max-width:100%;padding:22px}.techstore-promo-overlay h2{font-size:26px}.techstore-video-section{padding-top:28px;padding-bottom:32px}}

/* v1.0.23: product grid/list switch on shop results */
.shop-toolbar{flex-wrap:wrap}.techstore-view-switch{display:flex;align-items:center;gap:5px;margin-left:auto}.techstore-view-btn{display:inline-grid;place-items:center;width:38px;height:36px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-size:20px;line-height:1;cursor:pointer}.techstore-view-btn:hover,.techstore-view-btn.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.techstore-filter-products.is-grid-view{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.techstore-filter-products.is-list-view{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.techstore-filter-products.is-list-view .techstore-filter-item{min-width:0}.techstore-filter-products.is-list-view .product-card{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:stretch;border-radius:12px}.techstore-filter-products.is-list-view .product-thumb{display:flex;align-items:center;justify-content:center;padding:12px}.techstore-filter-products.is-list-view .product-thumb img{width:100%;height:125px;aspect-ratio:auto;object-fit:contain}.techstore-filter-products.is-list-view .product-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:20px;row-gap:5px;padding:14px 18px}.techstore-filter-products.is-list-view .product-title{grid-column:1;min-height:0}.techstore-filter-products.is-list-view .product-rating{grid-column:1;margin:0}.techstore-filter-products.is-list-view .product-price{grid-column:1;margin:2px 0;font-size:18px}.techstore-filter-products.is-list-view .product-actions{grid-column:2;grid-row:1 / span 3;align-self:center;min-width:140px}.techstore-filter-products.is-list-view .product-actions .button{white-space:normal}.techstore-filter-products.is-list-view .badge{top:8px;left:8px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1000px){.techstore-filter-products.is-grid-view{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.shop-toolbar{flex-direction:row;align-items:center}.techstore-result-count{flex:1}.sort-control{width:auto;flex:1}.techstore-view-switch{margin-left:0}.techstore-filter-products.is-grid-view{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.techstore-filter-products.is-list-view .product-card{grid-template-columns:100px minmax(0,1fr)}.techstore-filter-products.is-list-view .product-thumb{padding:8px}.techstore-filter-products.is-list-view .product-thumb img{height:95px}.techstore-filter-products.is-list-view .product-info{display:block;padding:10px;min-width:0}.techstore-filter-products.is-list-view .product-title{font-size:14px;display:block}.techstore-filter-products.is-list-view .product-price{font-size:16px}.techstore-filter-products.is-list-view .product-actions{margin-top:8px;min-width:0}.techstore-filter-products.is-list-view .product-actions .button{font-size:12px;padding:8px 10px}}


/* v1.0.24: separate responsive Brand mega menu + dynamic primary navbar on one row */
.mega-nav-row{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:nowrap}
.mega-shop-wrap,.brand-mega-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}
.mega-shop-link,.brand-mega-link{height:46px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border-radius:8px;font-size:13px;font-weight:850;white-space:nowrap}
.brand-mega-link{background:#f1f5f9;color:var(--text);border:1px solid var(--border)}
.brand-mega-link:hover,.brand-mega-wrap:focus-within .brand-mega-link,.brand-mega-wrap.is-open .brand-mega-link{background:var(--primary);color:#fff;border-color:var(--primary)}
.brand-mega-chevron{font-size:12px;transition:transform .18s}
.brand-mega-wrap:hover .brand-mega-chevron,.brand-mega-wrap:focus-within .brand-mega-chevron,.brand-mega-wrap.is-open .brand-mega-chevron{transform:rotate(180deg)}
.brand-mega-menu{position:absolute;z-index:1100;left:0;top:100%;width:min(620px,calc(100vw - 32px));padding-top:9px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(7px);transition:opacity .16s,transform .16s,visibility .16s}
.brand-mega-heading,.brand-mega-list{background:#fff}
.brand-mega-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px 10px;border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0}
.brand-mega-heading strong{font-size:15px}.brand-mega-heading>a{font-size:12px;font-weight:800;color:var(--primary);white-space:nowrap}
.brand-mega-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px;padding:8px 18px 18px;border:1px solid var(--border);border-top:0;border-radius:0 0 12px 12px;box-shadow:0 18px 40px rgba(15,23,42,.15);max-height:60vh;overflow:auto}
.brand-mega-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:7px;font-size:13px;font-weight:700;min-width:0}
.brand-mega-item:hover,.brand-mega-item:focus{background:#eff6ff;color:var(--primary)}.brand-mega-item span{opacity:.55}.brand-mega-empty{grid-column:1/-1;color:var(--muted);font-size:13px;margin:8px 0}

/*
.category-nav{display:flex;align-items:center;gap:16px;flex:1;min-width:0;overflow-x:auto;white-space:nowrap;padding:8px 0 8px 4px;scrollbar-width:thin}
.category-nav>a,.category-nav .primary-menu-list>li>a,.category-nav .page_item>a{font-size:12px;font-weight:800;white-space:nowrap}
.category-nav .primary-menu-list{display:flex;align-items:center;gap:16px;list-style:none;padding:0;margin:0;white-space:nowrap}
.category-nav .primary-menu-list li{position:relative;list-style:none}.category-nav .primary-menu-list .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:1200;min-width:190px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px;box-shadow:var(--shadow);list-style:none}
.category-nav .primary-menu-list li:hover>.sub-menu,.category-nav .primary-menu-list li:focus-within>.sub-menu{display:block}.category-nav .primary-menu-list .sub-menu a{display:block;padding:8px 10px;font-size:13px;white-space:normal}
*/
@media (hover:hover) and (pointer:fine){.brand-mega-wrap:hover .brand-mega-menu,.brand-mega-wrap:focus-within .brand-mega-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}}
.brand-mega-wrap.is-open .brand-mega-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
@media(max-width:1050px){.mega-nav-row{gap:7px}.mega-shop-link,.brand-mega-link{padding:0 9px;font-size:12px}.category-nav{gap:12px}.category-nav .primary-menu-list{gap:12px}}
@media(max-width:768px){.mega-nav-row{display:flex;flex-wrap:wrap;gap:6px;padding:7px 0}.mega-shop-wrap,.brand-mega-wrap{flex:0 0 auto}.mega-shop-link,.brand-mega-link{height:42px;margin:0}.kapee-mega-menu{position:absolute;left:0;top:100%;width:calc(100vw - 24px);padding-top:6px;display:none;opacity:1;visibility:visible;pointer-events:auto;transform:none}.mega-shop-wrap.is-open .kapee-mega-menu{display:block}.brand-mega-menu{position:absolute;left:0;top:100%;width:calc(100vw - 24px);padding-top:6px;display:none;opacity:1;visibility:visible;pointer-events:auto;transform:none}.brand-mega-wrap.is-open .brand-mega-menu{display:block}.brand-mega-list{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;max-height:55vh}.brand-mega-heading{padding:12px}.category-nav{flex:1 0 100%;order:3;width:100%;padding:8px 0;gap:15px}.category-nav .primary-menu-list{gap:15px}}
@media(max-width:420px){.mega-shop-link,.brand-mega-link{font-size:11px;padding:0 8px;gap:5px}.brand-mega-list{grid-template-columns:1fr}.brand-mega-heading strong{font-size:13px}}


/* v1.0.23.1: AJAX filter reliability and price slider */
.techstore-price-range{display:grid;gap:10px;margin-top:12px}
.techstore-price-range input[type=range]{width:100%;accent-color:var(--primary,#2563eb);cursor:pointer}
.techstore-price-range-values{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted,#64748b)}
.techstore-price-row input{min-width:0;width:100%;box-sizing:border-box}
#techstore-product-results.is-loading{opacity:.55;pointer-events:none;position:relative;min-height:120px}
#techstore-product-results.is-loading:after{content:"Updating products…";display:block;text-align:center;padding:24px;font-weight:700}

/* Mega navigation row */

.mega-nav-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
    z-index: 1000;
}

/* Navigation items */
.mega-nav-row > li,
.mega-nav-row > .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    list-style: none;
}

.mega-nav-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* Submenu / mega menu */
.mega-nav-row li {
    position: relative;
}

.mega-nav-row li > .sub-menu,
.mega-nav-row li > .mega-menu,
.mega-nav-row li > .brand-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    color: #222;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 99999;
}

/* Open submenu on hover and keyboard focus */
.mega-nav-row li:hover > .sub-menu,
.mega-nav-row li:hover > .mega-menu,
.mega-nav-row li:focus-within > .sub-menu,
.mega-nav-row li:focus-within > .mega-menu {
    display: block;
}

/* Brand mega menu */
.mega-nav-row .brand-mega-wrap:hover > .brand-mega-menu,
.mega-nav-row .brand-mega-wrap:focus-within > .brand-mega-menu,
.mega-nav-row .brand-mega-wrap.is-open > .brand-mega-menu {
    display: block !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .mega-nav-row {
        gap: 8px;
    }

    .mega-nav-row a {
        padding: 10px 7px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .mega-nav-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .mega-nav-row > li,
    .mega-nav-row > .menu-item {
        flex-shrink: 1;
    }

    .mega-nav-row a {
        padding: 9px 6px;
        white-space: normal;
    }

    .mega-nav-row li > .sub-menu,
    .mega-nav-row li > .mega-menu,
    .mega-nav-row li > .brand-mega-menu {
        max-width: 92vw;
        max-height: 65vh;
        overflow-y: auto;
    }
}


/* Fix: Shop by Brand mega menu hover */
.brand-mega-wrap {
    position: relative !important;
    z-index: 99999 !important;
    /*new added*/
    display:flex;align-items:center;
    flex:0 0 auto;
}

.brand-mega-wrap > .brand-mega-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;

    width: min(680px, 92vw);
    max-height: 70vh;
    overflow-y: auto;

    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    z-index: 999999 !important;
    padding: 20px;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Open on hover, keyboard focus, or JavaScript toggle */
.brand-mega-wrap:hover > .brand-mega-menu,
.brand-mega-wrap:focus-within > .brand-mega-menu,
.brand-mega-wrap.is-open > .brand-mega-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.brand-mega-wrap > .brand-mega-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background:var(--primary);color:#fff;border-color:var(--primary)
}

/* Brand links */
.brand-mega-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.brand-mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    color: #222 !important;
    text-decoration: none !important;
    border-radius: 5px;
}

.brand-mega-item:hover,
.brand-mega-item:focus-visible {
    background: #f2f5f9;
    color: #075fbd !important;
}

/* Prevent header containers from clipping the dropdown */
.site-header,
.site-header .container,
.site-header .header-inner,
.site-header .main-navigation,
.site-header .navbar,
.site-header .nav-menu {
    overflow: visible;
}

@media (max-width: 767px) {
    .brand-mega-wrap > .brand-mega-menu {
        width: min(92vw, 420px);
        max-height: 65vh;
    }

    .brand-mega-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .brand-mega-link{height:42px;margin:0}
}

@media (max-width: 380px) {
    .brand-mega-list {
        grid-template-columns: 1fr;
    }
}
*/
/*Responsive CSS navbar*/
.category-nav,
.category-nav * {
    box-sizing: border-box;
}

.category-nav {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 12px 20px;
    background: #0b1730;
}

.category-nav .category-logo {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav .category-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-nav .category-links,
.category-nav .category-submenu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-nav .category-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-nav .category-links > li {
    position: relative;
}

.category-nav .category-links a {
    display: block;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
}

.category-nav .category-links a:hover,
.category-nav .category-links a.active {
    background: #d9b568;
    color: #0b1730;
}

.category-nav .category-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.category-nav .category-submenu a {
    color: #172033;
}

.category-nav .category-item:hover > .category-submenu,
.category-nav .category-item:focus-within > .category-submenu {
    display: block;
}

.category-nav .category-button {
    padding: 10px 14px;
    background: #d9b568;
    color: #0b1730;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav .category-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid #778197;
    border-radius: 5px;
    cursor: pointer;
}

.category-nav .category-toggle span {
    height: 2px;
    width: 100%;
    background: #fff;
}

/* Tablet and mobile */
@media (max-width: 991px) {
    .category-nav {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .category-nav .category-toggle {
        display: flex;
        margin-left: auto;
    }

    .category-nav .category-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .category-nav .category-menu.is-open {
        display: flex;
    }

    .category-nav .category-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .category-nav .category-links > li {
        width: 100%;
    }

    .category-nav .category-links a {
        padding: 12px;
    }

    .category-nav .category-submenu {
        position: static;
        min-width: 0;
        margin: 0 0 8px 14px;
        background: #142440;
        box-shadow: none;
    }

    .category-nav .category-submenu a {
        color: #fff;
    }

    .category-nav .category-item:hover > .category-submenu {
        display: none;
    }

    .category-nav .category-item:focus-within > .category-submenu {
        display: block;
    }

    .category-nav .category-button {
        text-align: center;
    }
}
/* OHM Electronics responsive navigation fix
   Keep the brand mega menu and category navigation on one desktop row.
   Hide only the main search/logo header on small screens. */
@media (min-width: 768px) {
    /* Common header/nav wrappers that contain both navigation elements */
    .main-nav .container:has(.brand-mega-wrap):has(.category-nav),
    .site-header .container:has(.brand-mega-wrap):has(.category-nav),
    .mega-nav-row:has(.brand-mega-wrap):has(.category-nav) {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
        /*width: 100%;*/
        min-width: 0;
    }

    .brand-mega-wrap {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        min-width: max-content;
    }

    .category-nav {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    .category-nav .category-menu,
    .category-nav .category-links {
        min-width: 0;
    }
}

/* Small devices: hide the logo/search/actions row but preserve navigation */
@media (max-width: 767px) {
    .header-main {
        display: none !important;
    }

    .brand-mega-wrap,
    .category-nav {
        max-width: 100%;
        min-width: 0;
    }

    .brand-mega-wrap {
        flex: 0 0 auto;
    }

    /* Keep menus usable on narrow screens without forcing page overflow */
    .brand-mega-wrap > .brand-mega-menu {
        width: min(92vw, 420px);
        max-width: calc(100vw - 24px);
    }

    .category-nav {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 420px) {
    .brand-mega-link {
        max-width: calc(100vw - 32px);
        white-space: nowrap;
    }
}


/* Footer bottom row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    box-sizing: border-box;
    font-size: 14px;
}

.footer-copyright {
    text-align: left;
    margin: 0;
}

.footer-designer {
    /*text-align: left;*/
    margin-left: auto;
    white-space: nowrap;
}

.footer-designer a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-designer a:hover {
    color: #b45309;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-copyright,
    .footer-designer {
        text-align: center;
        margin-left: 0;
        white-space: normal;
    }
}

/* Bhupen Huzdar Personal Brand Logo */
.bh-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #0b1730;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.bh-monogram {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d9b568;
    border-radius: 8px;
    color: #d9b568;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -2px;
}

.bh-logo-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bh-logo-name {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.bh-logo-tagline {
    color: #d9b568;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.bh-logo:hover {
    opacity: 0.88;
}

@media (max-width: 480px) {
    .bh-logo {
        gap: 8px;
        padding: 8px 10px;
    }

    .bh-monogram {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .bh-logo-name {
        font-size: 8px;
    }

    .bh-logo-tagline {
        font-size: 6px;
        letter-spacing: 1px;
    }
}

/* new header css --*/


/* OHM: unified mobile Brand + Category menu */
/*
.ohm-combined-menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .ohm-combined-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #142238;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .ohm-combined-menu-toggle[hidden] {
    display: none !important;
  }

  .ohm-combined-mobile-menu {
    display: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .ohm-combined-mobile-menu.is-open {
    display: block;
  }

  .ohm-combined-mobile-menu .brand-mega-wrap,
  .ohm-combined-mobile-menu .category-nav {
    display: block;
    position: relative;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .ohm-combined-mobile-menu .brand-mega-wrap > a,
  .ohm-combined-mobile-menu .category-nav > a,
  .ohm-combined-mobile-menu .category-nav > ul > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 8px;
    box-sizing: border-box;
    border-bottom: 1px solid #edf0f4;
    color: #172033;
    text-decoration: none;
    white-space: normal;
  }

  .ohm-combined-mobile-menu .brand-mega-menu,
  .ohm-combined-mobile-menu .category-nav .sub-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }
}


/* OHM Electronics: Brand + Category in one row, two columns */
/*
@media (max-width: 767px) {
  .ohm-combined-mobile-menu.is-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .ohm-combined-mobile-menu .brand-mega-wrap,
  .ohm-combined-mobile-menu .category-nav {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    box-sizing: border-box;
  }

  .ohm-combined-mobile-menu .brand-mega-wrap > a,
  .ohm-combined-mobile-menu .category-nav > a,
  .ohm-combined-mobile-menu .category-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ohm-combined-mobile-menu .brand-mega-menu,
  .ohm-combined-mobile-menu .category-nav .sub-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }
}
*/
/* WooCommerce product gallery thumbnail navigation */
.single-product .woocommerce-product-gallery
.flex-control-nav.flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 15px 0 0 !important;
    padding: 0;
    list-style: none;
}

/* Equal thumbnail containers */
.single-product .woocommerce-product-gallery
.flex-control-nav.flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    height: 90px;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
}

/* Uniform image size and crop */
.single-product .woocommerce-product-gallery
.flex-control-nav.flex-control-thumbs li img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
}

/* Highlight selected thumbnail */
.single-product .woocommerce-product-gallery
.flex-control-nav.flex-control-thumbs li img.flex-active {
    opacity: 1;
    outline: 2px solid #c62828;
    outline-offset: -2px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .single-product .woocommerce-product-gallery
    .flex-control-nav.flex-control-thumbs {
        gap: 8px;
    }

    .single-product .woocommerce-product-gallery
    .flex-control-nav.flex-control-thumbs li {
        height: 70px;
    }
}
