/*
Theme Name: AsiaTech Digital Store
Theme URI: https://asiatech.pk
Author: AsiaTech
Description: Custom WooCommerce storefront for AsiaTech Digital Store.
Version: 1.9.1
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: asiatech-digital-store
*/

:root{--at-navy:#073763;--at-blue:#143f77;--at-orange:#ff7900;--at-white:#fff;--at-grey:#f4f7fb;--at-text:#152033;--at-border:#e6ebf2;--at-shadow:0 8px 24px rgba(7,55,99,.09);--at-radius:12px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--at-text);background:#fff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:var(--at-navy);text-decoration:none}a:hover{color:var(--at-orange)}img{max-width:100%;height:auto;display:block}.container{width:min(1240px,calc(100% - 32px));margin-inline:auto}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.site-topbar{background:var(--at-navy);color:#fff;font-size:13px}.topbar-inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar-contact,.topbar-social{display:flex;align-items:center;gap:16px}.topbar-contact span,.topbar-social a{color:#fff}.site-header{background:#fff;border-bottom:1px solid var(--at-border)}.main-header{min-height:72px;display:grid;grid-template-columns:240px 1fr auto;align-items:center;gap:24px}.site-brand img{max-height:54px;width:auto}.search-wrap{position:relative}.search-wrap input{width:100%;height:42px;border:1px solid var(--at-border);border-radius:8px;padding:0 52px 0 16px;background:#fff}.search-wrap button{position:absolute;right:0;top:0;width:46px;height:42px;border:0;border-radius:0 8px 8px 0;background:var(--at-orange);color:#fff;cursor:pointer}.header-actions{display:flex;align-items:center;gap:20px}.account-link,.cart-link{display:flex;align-items:center;gap:8px;font-weight:700}.cart-count{background:var(--at-orange);color:#fff;border-radius:999px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}.site-nav{background:var(--at-navy)}.nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:42px}.primary-menu{display:flex;list-style:none;padding:0;margin:0;gap:0}.primary-menu a{display:block;color:#fff;padding:11px 22px;font-weight:700;font-size:14px}.primary-menu .current-menu-item a,.primary-menu a:hover{background:var(--at-orange);color:#fff}.whatsapp-btn,.button.at-orange{background:var(--at-orange)!important;color:#fff!important;border:0!important}.whatsapp-btn{padding:10px 18px;border-radius:8px;font-weight:800}.hero{margin:16px 0 18px;border-radius:10px;overflow:hidden;background:linear-gradient(100deg,#073763,#143f77);color:#fff;position:relative}.hero-inner{min-height:280px;display:grid;grid-template-columns:1fr 1.25fr;align-items:center;gap:20px;padding:34px 30px}.hero-copy{max-width:540px;position:relative;z-index:1}.eyebrow{display:inline-block;background:var(--at-orange);padding:4px 10px;border-radius:6px;font-weight:800;margin-bottom:10px}.hero h1{font-size:40px;line-height:1.1;margin:0 0 10px}.hero p{font-size:16px;margin:0 0 18px}.hero-art{height:100%;display:flex;align-items:center;justify-content:center}.device-scene{width:100%;height:220px;position:relative}.device{position:absolute;background:#111;border-radius:14px;box-shadow:0 16px 28px rgba(0,0,0,.3)}.laptop{width:280px;height:150px;right:150px;top:25px;transform:skewY(-4deg)}.laptop:after{content:"";position:absolute;left:-20px;right:-20px;bottom:-18px;height:18px;background:#bbb;border-radius:0 0 10px 10px}.phone{width:58px;height:112px;right:85px;top:44px;border:4px solid #222}.camera{width:130px;height:85px;right:0;top:58px;background:#333}.camera:before{content:"";position:absolute;width:54px;height:54px;border-radius:50%;background:#111;border:9px solid #777;left:35px;top:14px}.headphones{width:85px;height:90px;left:25px;top:52px;border:12px solid #111;border-bottom-color:transparent;border-radius:50%}.hero-button{display:inline-block;background:var(--at-orange);color:#fff;padding:9px 18px;border-radius:999px;font-weight:800}.store-layout{display:grid;grid-template-columns:225px minmax(0,1fr) 225px;gap:14px;align-items:start}.sidebar-card,.promo-card,.benefit-card,.product-card{border:1px solid var(--at-border);border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(7,55,99,.05)}.sidebar-card{padding:14px;margin-bottom:14px}.sidebar-card h3{font-size:15px;margin:0 0 12px}.cat-list{list-style:none;padding:0;margin:0}.cat-list li{margin:0}.cat-list a{display:flex;justify-content:space-between;gap:8px;padding:7px 0;font-size:13px}.cat-count{background:#eef2f7;border-radius:8px;padding:1px 7px;color:#536174}.price-range{width:100%}.price-values{display:flex;justify-content:space-between;font-size:12px;color:#657187}.filter-btn{width:100%;margin-top:10px;background:var(--at-navy);color:#fff;border:0;border-radius:6px;padding:9px;font-weight:700}.products-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.products-head h2{margin:0;font-size:22px}.products-head h2:after{content:"";display:block;width:32px;height:3px;background:var(--at-orange);margin-top:5px}.sort-select{border:1px solid var(--at-border);padding:8px;border-radius:7px;background:#fff}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.product-card{padding:10px;overflow:hidden}.product-image{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain}.product-title{font-size:13px;font-weight:800;margin:8px 0 3px}.rating{color:var(--at-orange);font-size:12px}.price{font-size:15px;font-weight:900;margin:3px 0 8px}.product-actions{display:grid;gap:5px}.product-actions .button{display:block;text-align:center;padding:6px 8px;border-radius:6px;font-size:12px;font-weight:800}.details-btn{background:var(--at-navy);color:#fff}.promo-card{overflow:hidden;margin-bottom:14px;background:var(--at-navy);color:#fff}.promo-content{padding:18px}.promo-card h3{font-size:20px;margin:0}.promo-card .discount{font-size:40px;line-height:1;font-weight:900;color:var(--at-orange)}.digital-card{background:linear-gradient(135deg,#124ba0,#0b76d0);padding:18px;color:#fff;border-radius:10px;margin-bottom:14px}.digital-card h3{margin:0 0 5px;font-size:20px}.feature-list{display:grid;gap:13px}.feature-item{display:flex;gap:10px;align-items:flex-start}.feature-icon{width:30px;height:30px;border-radius:50%;background:#eaf2fb;display:grid;place-items:center;color:var(--at-navy);font-weight:900;flex:0 0 30px}.feature-item strong{display:block;font-size:13px}.feature-item span{font-size:11px;color:#68758a}.benefits{width:min(1240px,calc(100% - 32px))!important;max-width:1240px!important;margin:16px auto!important;background:#edf4fb;border-radius:10px;padding:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;clear:both}.benefit{display:flex;gap:10px;align-items:center}.benefit strong{display:block;font-size:12px}.benefit span{font-size:10px;color:#657187}.site-footer{background:#092e56;color:#fff;margin-top:32px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:30px;padding:36px 0}.site-footer a,.site-footer p{color:#dbe8f6}.site-footer h3{color:#fff;font-size:15px}.floating-wa{position:fixed;right:20px;bottom:20px;width:54px;height:54px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.2);z-index:20}.woocommerce ul.products{margin:0}.woocommerce div.product form.cart .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--at-navy);color:#fff;border-radius:7px}.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--at-orange);color:#fff}.site-main{padding-bottom:20px}.mobile-toggle{display:none;background:none;border:0;font-size:24px;color:var(--at-navy)}
@media(max-width:1100px){.store-layout{grid-template-columns:190px minmax(0,1fr)}.right-sidebar{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.main-header{grid-template-columns:190px 1fr auto}.primary-menu a{padding-inline:13px}}
@media(max-width:800px){.topbar-inner{justify-content:center}.topbar-social{display:none}.main-header{grid-template-columns:auto 1fr auto;gap:10px}.site-brand img{max-height:45px}.header-actions .account-link{display:none}.nav-inner{min-height:auto}.mobile-toggle{display:block;color:#fff;padding:8px}.primary-menu{display:none;flex-direction:column;width:100%}.site-nav.open .primary-menu{display:flex}.nav-inner{flex-wrap:wrap}.primary-menu a{padding:10px 12px}.nav-inner .whatsapp-btn{display:none}.hero-inner{grid-template-columns:1fr;min-height:330px}.hero-art{display:none}.hero h1{font-size:32px}.store-layout{grid-template-columns:1fr}.left-sidebar{order:2}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.benefits{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.search-wrap{grid-column:1/-1;grid-row:2}.main-header{padding:8px 0}}
@media(max-width:480px){.container{width:min(100% - 20px,1240px)}.benefits{width:calc(100% - 20px)!important}.topbar-contact{gap:8px;font-size:11px}.topbar-contact span:nth-child(3){display:none}.product-grid{grid-template-columns:1fr 1fr;gap:8px}.product-card{padding:7px}.product-title{font-size:12px}.hero{margin-top:10px}.hero-inner{padding:24px 18px}.hero h1{font-size:28px}.footer-grid{grid-template-columns:1fr}.benefits{grid-template-columns:1fr}.sort-select{max-width:130px}}
.asiatech-search-results{position:absolute;left:0;right:46px;top:44px;background:#fff;border:1px solid var(--at-border);border-radius:0 0 8px 8px;box-shadow:var(--at-shadow);z-index:50;overflow:hidden}.asiatech-search-results a{display:block;padding:9px 12px;border-bottom:1px solid #eef2f6;font-size:13px}.asiatech-search-results a:last-child{border-bottom:0}.wa-form input,.wa-form textarea{border:1px solid #dbe3ec;border-radius:6px}.wa-form button{cursor:pointer}
.hero{background:#073763}.hero-image-link{display:block}.hero-banner{width:100%;display:block;height:auto}.hero-image-link:hover{opacity:1}.promo-card{background:transparent;border:0;box-shadow:none}.promo-image{display:block;width:100%;height:auto;border-radius:10px}.top-product{display:flex!important;align-items:center;gap:10px}.top-product img{width:54px;height:54px;object-fit:cover;border-radius:8px}.top-product span{min-width:0}.top-product strong{display:block;font-size:12px}.top-product .star-rating{font-size:11px}.product-card .star-rating{margin:2px 0}.product-image{background:#f4f7fb}.site-footer .container{width:min(1240px,calc(100% - 32px))!important;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}

/* Universal 5-slide hero */
.hero-slider{position:relative;margin:16px 0 18px;border-radius:10px;overflow:hidden;background:#073763;color:#fff;isolation:isolate;outline:none}
.hero-slides{position:relative;height:228px}
.hero-slide{display:none;position:relative;height:228px;background:linear-gradient(105deg,#073763 0%,#143f77 100%)}
.hero-slide.is-active{display:block;animation:atHeroFade .35s ease}
@keyframes atHeroFade{from{opacity:.72}to{opacity:1}}
.hero-slide-link,.hero-reference-slide{display:block;width:100%;height:100%}
.hero-slide-bg{width:100%;height:100%;object-fit:cover;display:block}
.hero-slide-inner{height:228px;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,42%);align-items:center;gap:18px;padding:30px 54px 42px 30px}
.hero-slide-copy{max-width:570px;position:relative;z-index:2}
.hero-slide-copy h1{font-size:38px;line-height:1.08;margin:0 0 10px;color:#fff}
.hero-slide-copy p{font-size:16px;margin:0 0 18px;color:#fff;max-width:560px}
.hero-slide-product{height:170px;display:flex;align-items:center;justify-content:center;position:relative}
.hero-slide-product:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.08)}
.hero-slide-product img{position:relative;z-index:1;width:min(235px,82%);height:170px;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(0,0,0,.28));border-radius:14px}
.hero-slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#073763;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,.18)}
.hero-slider-arrow:hover{background:#ff7900;color:#fff}
.hero-prev{left:12px}.hero-next{right:12px}
.hero-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:7px;z-index:5}
.hero-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer}
.hero-dots button.is-active{width:24px;border-radius:8px;background:#ff7900}
.hero-slider:focus-visible{box-shadow:0 0 0 3px rgba(255,121,0,.55)}
@media(max-width:800px){.hero-slider{margin-top:10px}.hero-slides,.hero-slide{height:300px}.hero-slide-inner{height:300px;grid-template-columns:1fr;padding:28px 44px 48px 20px;text-align:left}.hero-slide-copy h1{font-size:30px}.hero-slide-copy p{font-size:14px}.hero-slide-product{height:125px;margin-top:-6px}.hero-slide-product:before{width:130px;height:130px}.hero-slide-product img{height:125px;width:180px}.hero-slider-arrow{width:32px;height:32px;font-size:23px}.hero-prev{left:8px}.hero-next{right:8px}}
@media(max-width:480px){.hero-slides,.hero-slide{height:300px}.hero-slide-inner{padding-left:18px;padding-right:38px}.hero-slide-copy h1{font-size:27px}.hero-slide-product{height:105px}.hero-slide-product img{height:105px}.hero-dots{bottom:9px}}

/* v1.6 admin-managed background slider */
.hero-slide{background-size:cover;background-position:center;background-repeat:no-repeat}
.hero-slide-inner{position:relative;z-index:1;display:flex;align-items:center;height:228px;padding:30px 54px 42px 30px}
.hero-slide-copy{max-width:570px}
.hero-slide-copy h1{max-width:620px}
.hero-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,45,91,.22),rgba(4,45,91,0) 72%);pointer-events:none}
@media(max-width:800px){.hero-slide-inner{height:300px;padding:28px 44px 48px 20px}.hero-slide{background-position:center}.hero-slide:before{background:linear-gradient(90deg,rgba(4,45,91,.35),rgba(4,45,91,.05))}}


/* v1.7: six-column reference storefront, close to the provided Daraz screenshot. */
.asiatech-reference-ready .store-layout.at-reference-mode,
.asiatech-reference-ready .shop-store-layout{display:block;width:100%;}
.asiatech-reference-ready .store-layout.at-reference-mode>.left-sidebar,
.asiatech-reference-ready .store-layout.at-reference-mode>.right-sidebar,
.asiatech-reference-ready .shop-store-layout>.left-sidebar,
.asiatech-reference-ready .shop-store-layout>.right-sidebar{display:none;}
.asiatech-reference-ready .store-layout.at-reference-mode .product-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;}
.asiatech-reference-ready .store-layout.at-reference-mode .product-card{padding:6px;border:1px solid #e7eaf0;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.04);min-width:0;}
.asiatech-reference-ready .product-card .product-image{aspect-ratio:1/1;display:block;background:#fff;border-radius:4px;}
.asiatech-reference-ready .product-card .product-image img{display:block;width:100%;height:100%;object-fit:cover;}
.asiatech-reference-ready .product-card .product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:35px;line-height:1.4;font-size:12px;font-weight:500;margin:6px 1px 3px;}
.asiatech-reference-ready .product-card .price{font-size:15px;color:#fb6a00;margin:3px 0 6px;}
.asiatech-reference-ready .product-card .price .amount{color:#fb6a00;}
.asiatech-reference-ready .product-card .product-actions{gap:4px;}
.asiatech-reference-ready .product-card .product-actions .button{font-size:11px;line-height:1.25;padding:7px 3px;}
.asiatech-reference-ready .products-head{margin-bottom:14px;}
.asiatech-reference-ready .woocommerce ul.products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
.asiatech-reference-ready .woocommerce ul.products:before,.asiatech-reference-ready .woocommerce ul.products:after{display:none;}
.asiatech-reference-ready .woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;border:1px solid #e7eaf0;padding:7px;border-radius:6px;}
.asiatech-reference-ready .woocommerce ul.products li.product img{aspect-ratio:1/1;object-fit:cover;border-radius:4px;}
.asiatech-reference-ready .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px;line-height:1.35;min-height:34px;}
.asiatech-reference-ready .woocommerce ul.products li.product .price{color:#f56a07;font-weight:700;}
.asiatech-search-hit small{font-size:11px;white-space:nowrap;color:#fb6a00;}
.asiatech-single-wa .button{display:inline-block;padding:12px 20px;border-radius:7px;}
@media(max-width:1100px){.asiatech-reference-ready .store-layout.at-reference-mode .product-grid,.asiatech-reference-ready .woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:700px){.asiatech-reference-ready .store-layout.at-reference-mode .product-grid,.asiatech-reference-ready .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}}
@media(max-width:420px){.asiatech-reference-ready .product-card .product-actions .button{font-size:10px;}}

/* v1.8: consistent single-product width and 20-at-a-time AJAX loading. */
.asiatech-woocommerce-main{width:min(1240px,calc(100% - 32px))!important;max-width:1240px!important;margin:22px auto 0!important;padding:0 0 24px;min-width:0;}
.asiatech-woocommerce-main .shop-results{min-width:0;}
.asiatech-woocommerce-main .woocommerce{max-width:100%;min-width:0;}
body.single-product .asiatech-woocommerce-main div.product{max-width:100%;margin:0 auto;min-width:0;}
body.single-product .asiatech-woocommerce-main div.product div.images{width:47%;max-width:550px;margin-bottom:22px;}
body.single-product .asiatech-woocommerce-main div.product div.summary{width:48%;max-width:595px;margin-bottom:28px;}
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image{background:#f8fafc;border:1px solid #eef1f5;border-radius:12px;overflow:hidden;}
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image img{width:100%;height:auto;max-height:530px;object-fit:contain;}
body.single-product .asiatech-woocommerce-main div.product .woocommerce-tabs{clear:both;}
body.single-product .asiatech-woocommerce-main .related.products{clear:both;margin-top:24px;}
body.single-product .asiatech-woocommerce-main .related.products ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
body.single-product .asiatech-woocommerce-main .related.products ul.products:before,body.single-product .asiatech-woocommerce-main .related.products ul.products:after{display:none;}
body.single-product .asiatech-woocommerce-main .related.products ul.products li.product{width:auto!important;float:none!important;margin:0!important;min-width:0;}
body.single-product .asiatech-woocommerce-main .related.products ul.products li.product img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f7f9fc;border-radius:7px;}
.asiatech-load-more-wrap{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:26px 0 12px;clear:both;}
.asiatech-load-more{display:inline-flex;align-items:center;justify-content:center;min-width:208px;min-height:46px;padding:11px 26px;background:var(--at-navy);color:#fff!important;border:1px solid var(--at-navy);border-radius:8px;box-shadow:0 4px 13px rgba(7,55,99,.14);font-weight:800;line-height:1.3;cursor:pointer;transition:background .2s,transform .2s;}
.asiatech-load-more:hover,.asiatech-load-more:focus{background:var(--at-orange);border-color:var(--at-orange);color:#fff!important;}
.asiatech-load-more:disabled,.asiatech-load-more[aria-disabled="true"]{opacity:.6;cursor:wait;}
.asiatech-load-more[hidden]{display:none!important;}
.asiatech-load-status{font-size:12px;color:#506580;text-align:center;}
@media(max-width:800px){body.single-product .asiatech-woocommerce-main .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.asiatech-woocommerce-main{width:calc(100% - 20px)!important;margin-top:12px!important;}body.single-product .asiatech-woocommerce-main div.product div.images,body.single-product .asiatech-woocommerce-main div.product div.summary{float:none;width:100%;max-width:100%;}body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image img{max-height:420px;}}

/* v1.9.1: zoom only on desktop pointer hover, with no image-click navigation or lightbox. */
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image a{pointer-events:none;cursor:default;}
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__trigger{display:none!important;}
body.single-product .asiatech-woocommerce-main .asiatech-zoom-hint{font-size:12px;color:#52637c;padding:8px 2px;margin:8px 0 14px;line-height:1.45;}
body.single-product .asiatech-woocommerce-main .asiatech-zoom-hint span{display:inline-block;font-size:18px;vertical-align:middle;line-height:1;margin-right:3px;color:#073763;}
/* Always constrain zoom to the existing image frame, not the page width. */
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image{overflow:hidden;cursor:default;}
body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image img{transform:scale(1);transform-origin:var(--at-zoom-x,50%) var(--at-zoom-y,50%);transition:transform .22s ease-out;will-change:transform;}
@media (hover:hover) and (pointer:fine){
 body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image{cursor:crosshair;}
 body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image:hover img{transform:scale(1.8);}
}
@media (hover:none), (pointer:coarse){body.single-product .asiatech-woocommerce-main .asiatech-zoom-hint{display:none;}}
@media (prefers-reduced-motion:reduce){body.single-product .asiatech-woocommerce-main .woocommerce-product-gallery__image img{transition:none;}}
