/*
Theme Name: TAN TECH
Theme URI: https://example.com/
Author: TAN TECH SUPPORT
Description: Multi-service + E-commerce + Delivery + Vehicle Booking theme for TAN TECH SUPPORT. Works with WooCommerce, Dokan (multi-vendor) and the TAN TECH Core plugin.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tantech
*/

:root{
  --navy:#0A2350; --blue:#1463D6; --blue-2:#E7F0FD; --yellow:#FFC928; --yellow-ink:#3A2A00;
  --green:#15A34A; --orange:#F2711C; --purple:#6D3FD1; --red:#D93636;
  --bg:#F3F6FB; --surface:#FFFFFF; --surface-2:#EEF2F9; --line:#D9E1EE;
  --ink:#0F1B33; --ink-2:#4A5872; --ink-3:#7C89A1;
  --shadow:0 1px 2px rgba(10,35,80,.06),0 6px 20px rgba(10,35,80,.06);
  --r:12px;
  --disp:"Baloo Da 2","Hind Siliguri",system-ui,sans-serif;
  --body:"Hind Siliguri",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 var(--body)}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--disp);line-height:1.2;margin:0;text-wrap:balance;color:var(--ink)}
h1{font-size:clamp(24px,3.4vw,34px)}
.h3,h3{font-size:20px}
p{margin:0 0 .8em}
a{color:var(--blue)}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
svg.i{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wrap{max-width:1200px;margin:0 auto;padding-inline:16px}
.num{font-variant-numeric:tabular-nums}
.sr,.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:8px;z-index:99;background:#fff;padding:8px 12px}
.small{font-size:13px}.muted{color:var(--ink-2)}

/* ---------- header ---------- */
.topstrip{background:var(--yellow);color:var(--yellow-ink);font-size:13px;font-weight:600}
.topstrip .wrap{display:flex;justify-content:space-between;gap:4px 12px;padding-block:5px;flex-wrap:wrap}
header.site{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50}
.admin-bar header.site{top:32px}
@media (max-width:782px){.admin-bar header.site{top:0}}
.hrow{display:flex;align-items:center;gap:16px;padding-block:12px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none;color:#fff}
.logo.custom img{max-height:52px;width:auto}
.logo .mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#2A7BFF,#0A2350 70%);display:grid;place-items:center;border:1px solid rgba(255,255,255,.2)}
.logo b{font-family:var(--disp);font-size:20px;letter-spacing:.02em;display:block;line-height:1}
.logo small{font-size:11px;opacity:.75;letter-spacing:.04em}
.search{flex:1;display:flex;background:#fff;border-radius:10px;overflow:hidden;min-width:0}
.search input[type=search]{flex:1;border:0;padding:10px 14px;min-width:0;color:#0F1B33;background:#fff;outline-offset:-2px}
.search button{border:0;background:var(--yellow);color:var(--yellow-ink);padding:0 16px;font-weight:700;display:flex;align-items:center;gap:6px;cursor:pointer}
.hact{display:flex;gap:6px;flex:none}
.hbtn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#fff;border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:6px;text-decoration:none;position:relative;font-size:14px}
.hbtn:hover{background:rgba(255,255,255,.16);color:#fff}
.hbtn .badge{position:absolute;top:-6px;right:-6px;background:var(--yellow);color:var(--yellow-ink);font-size:11px;font-weight:700;border-radius:99px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px}
nav.main{border-top:1px solid rgba(255,255,255,.1)}
nav.main ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
nav.main ul::-webkit-scrollbar{display:none}
nav.main a{display:block;padding:10px 14px;text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;color:#fff;opacity:.85;border-bottom:3px solid transparent}
nav.main .current-menu-item>a,nav.main a:hover{opacity:1;border-color:var(--yellow)}
@media (max-width:760px){.hrow{flex-wrap:wrap}.search{order:3;flex-basis:100%}.hbtn .t{display:none}.logo small{display:none}}

.site-main{padding-block:20px 56px;min-height:60vh}
.section{margin-top:32px}
.sec-h{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:14px}
.sec-h h2{font-size:24px}
.sec-h .sub{color:var(--ink-2);font-size:14px;margin:0}
.link{color:var(--blue);font-weight:600;text-decoration:none;font-size:14px;white-space:nowrap}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.pad{padding:18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:10px 18px;font-weight:700;border:1px solid transparent;text-decoration:none;font-size:15px;cursor:pointer;line-height:1.3}
.btn.y{background:var(--yellow);color:var(--yellow-ink)}
.btn.b{background:var(--blue);color:#fff}
.btn.ghost-w{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.btn.sm{padding:7px 12px;font-size:13px}
.btn:hover{filter:brightness(.95)}
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:2px 10px;font-size:12px;font-weight:700}
.p-red{background:rgba(217,54,54,.14);color:var(--red)}
.p-gray{background:var(--surface-2);color:var(--ink-2)}
.grid{display:grid;gap:14px}
.grid>*{min-width:0}
.g6{grid-template-columns:repeat(6,1fr)}.g5{grid-template-columns:repeat(5,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
@media (max-width:980px){.g6,.g5{grid-template-columns:repeat(3,1fr)}.g4,.g3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.g3,.g2{grid-template-columns:1fr}.g6,.g5{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.svc-grid{grid-template-columns:1fr}}

/* ---------- hero ---------- */
.hero{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
.hero>*{min-width:0}
.hero-main{border-radius:16px;background:radial-gradient(circle at 85% 20%,rgba(42,123,255,.55),transparent 55%),linear-gradient(120deg,#0A2350,#0E3A86);color:#fff;padding:32px;position:relative;overflow:hidden;min-height:280px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.hero-main h1{font-size:clamp(28px,4.4vw,46px);max-width:14ch;color:#fff}
.hero-main h1 em{font-style:normal;color:var(--yellow);display:block}
.hero-main p{max-width:44ch;opacity:.9;margin:0}
.hero-main .ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-badge{background:rgba(255,201,40,.18);color:var(--yellow);align-self:flex-start}
.hero-cv,.hero-img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero-cv{opacity:.35}
.hero-img{object-fit:cover;opacity:.35}
.hero-main>*:not(.hero-cv):not(.hero-img){position:relative}
.hero-side{display:grid;gap:16px}
.promo{border-radius:16px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:10px;text-decoration:none}
.promo h3{font-size:22px;color:inherit}
.promo p{margin:4px 0 0}
.promo.y{background:var(--yellow);color:var(--yellow-ink)}
.promo.gr{background:linear-gradient(135deg,#15A34A,#0E7A37);color:#fff}
@media (max-width:860px){.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.hero-side{grid-template-columns:1fr}.hero-main{padding:24px}}

.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pillar{background:var(--c);border-radius:14px;padding:16px;color:#fff;text-decoration:none;display:flex;gap:12px;align-items:center;min-width:0}
.pillar .ic{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.pillar .ic svg{width:24px;height:24px}
.pillar b{display:block;font-family:var(--disp);font-size:17px;line-height:1.2;overflow-wrap:anywhere}
.pillar small{opacity:.85;font-size:13px}
@media (max-width:860px){.pillars{grid-template-columns:1fr 1fr}}

/* ---------- services ---------- */
.svc{padding:16px;display:flex;flex-direction:column;gap:10px}
.svc-top{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit}
.svc .ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:#fff}
.svc h4{font-size:17px}
.svc h4 small{display:block;font:500 13px var(--body);color:var(--ink-2)}
.svc ul{margin:0;padding-left:18px;color:var(--ink-2);font-size:13.5px}
.svc-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-block:10px}
.from{font-size:16px}

.cat{padding:14px 10px;text-align:center;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--ink)}
.cat .ic{width:56px;height:56px;border-radius:50%;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;overflow:hidden}
.cat .ic img{width:100%;height:100%;object-fit:cover}
.cat .ic svg{width:26px;height:26px}
.cat:hover{border-color:var(--blue)}

/* ---------- product card ---------- */
.prod{display:flex;flex-direction:column;overflow:hidden}
.prod .img{aspect-ratio:1/1;background:var(--surface-2);display:grid;place-items:center;position:relative;max-width:100%}
.prod .img img{width:100%;height:100%;object-fit:cover}
.prod .img .ph{width:40%;height:auto;color:var(--blue);stroke-width:1.2}
.prod .off{position:absolute;top:8px;left:8px;background:var(--red);color:#fff}
.prod .body{padding:12px;display:flex;flex-direction:column;gap:4px;flex:1}
.prod .t{text-decoration:none;color:inherit}
.prod h4{font:600 14.5px/1.35 var(--body)}
.vend{display:block;font-size:12px;color:var(--ink-3)}
.stars{color:#E9A800;font-size:13px}
.price{font-weight:700;font-size:17px;color:var(--ink)}
.price del{font-weight:400;color:var(--ink-3);font-size:13px}
.price ins{text-decoration:none}
.prod .foot{display:flex;gap:8px;margin-top:auto;padding-top:8px}
.prod .foot .btn{flex:1}
.prod .added_to_cart{display:none}

.store{padding:16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.store .av{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-family:var(--disp);font-size:22px;color:#fff;object-fit:cover}
.store b{font-size:14.5px}

/* ---------- steps ---------- */
.flow{list-style:none;margin:0;padding:0 0 4px;display:flex;gap:6px;align-items:flex-start;overflow-x:auto}
.step{flex:1;min-width:92px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;position:relative}
.step .dot{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--blue-2);color:var(--blue);border:2px solid var(--blue-2)}
.step:not(:last-child)::after{content:"";position:absolute;top:22px;left:calc(50% + 26px);right:calc(-50% + 26px);height:2px;background:var(--line)}
section.card h3{margin-bottom:12px}

/* ---------- media ---------- */
.vid{overflow:hidden;text-decoration:none;color:inherit}
.vid .th{aspect-ratio:16/9;background:linear-gradient(135deg,#0E3A86,#0A2350);display:grid;place-items:center;position:relative;max-width:100%}
.vid .th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vid .play{position:relative;width:54px;height:54px;border-radius:50%;background:var(--red);display:grid;place-items:center;color:#fff}
.vid .body{padding:12px}
.vid h4{font:600 14.5px var(--body)}
.news-list{margin-top:14px}
.news{display:flex;gap:14px;align-items:flex-start;text-decoration:none;color:inherit}
.news .ni{width:52px;height:52px;border-radius:10px;background:var(--blue-2);color:var(--blue);display:grid;place-items:center;flex:none;overflow:hidden}
.news .ni img{width:100%;height:100%;object-fit:cover}
.news h4{font:600 15.5px var(--body)}

/* ---------- pages ---------- */
.page-h{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:end;margin-bottom:18px}
.page-h p{color:var(--ink-2);margin:4px 0 0}
.crumb{font-size:13px;color:var(--ink-3);margin-bottom:4px}
.crumb a{color:inherit;text-decoration:none}
.entry{max-width:780px}
.entry.wide{max-width:none}
.entry>*+*{margin-top:1em}
.single-post{max-width:780px}
.single-post h1{margin-block:4px 6px}
.feat{margin-block:14px;border-radius:12px;overflow:hidden}
.twocol{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;align-items:start;margin-top:10px}
.twocol>*{min-width:0}
.twocol .h3{margin-bottom:10px}
@media (max-width:860px){.twocol{grid-template-columns:1fr}}
.post-card{overflow:hidden}
.post-card .thumb img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card h2{margin-block:4px 6px}
.post-card h2 a{color:var(--ink);text-decoration:none}
.empty{text-align:center;padding:40px 16px;color:var(--ink-2)}
.empty h1{margin-bottom:8px}
.pager{margin-top:20px}
.pager .nav-links{display:flex;gap:6px;flex-wrap:wrap}
.pager .page-numbers{padding:6px 12px;border-radius:8px;background:var(--surface);border:1px solid var(--line);text-decoration:none}
.pager .current{background:var(--blue);color:#fff;border-color:var(--blue)}

/* ---------- footer ---------- */
footer.site{background:var(--navy);color:#C9D5EC;padding-block:36px 24px;font-size:14px}
footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px}
footer h4{color:#fff;font-size:16px;margin-bottom:8px}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
footer a{color:#C9D5EC;text-decoration:none}
footer a:hover{color:var(--yellow)}
footer .social{display:flex;gap:14px}
footer .bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:24px;padding-top:14px;font-size:13px}
@media (max-width:760px){footer .cols{grid-template-columns:1fr 1fr}}
@media (max-width:420px){footer .cols{grid-template-columns:1fr}}
.fab{position:fixed;right:16px;bottom:16px;z-index:40;background:#1FA855;color:#fff;border-radius:99px;padding:10px 16px;font-weight:700;display:flex;gap:8px;align-items:center;text-decoration:none;box-shadow:var(--shadow)}
.fab:hover{color:#fff}

/* ---------- WooCommerce ---------- */
.wc-wrap.has-side{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:start}
.wc-wrap>*{min-width:0}
@media (max-width:860px){.wc-wrap.has-side{grid-template-columns:1fr}}
.shop-side{display:grid;gap:12px}
.widget-title{font-size:16px;margin-bottom:8px}
.woocommerce .woocommerce-breadcrumb{font-size:13px;color:var(--ink-3)}
.woocommerce-products-header__title{margin-bottom:10px}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 20px;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:0 0 12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
@media (max-width:980px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
.woocommerce ul.products li.product a img{margin:0 0 10px;aspect-ratio:1/1;object-fit:cover;background:var(--surface-2)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font:600 14.5px/1.35 var(--body);padding:0 12px;color:var(--ink)}
.woocommerce ul.products li.product .vend,.woocommerce ul.products li.product .star-rating,.woocommerce ul.products li.product .price{margin-inline:12px}
.woocommerce ul.products li.product .price{color:var(--ink);font-weight:700;font-size:16px}
.woocommerce ul.products li.product .button{margin:auto 12px 0}
.woocommerce ul.products li.product .onsale{top:8px;left:8px;right:auto;margin:0;min-height:0;min-width:0;line-height:1.4;padding:2px 10px;border-radius:99px;background:var(--red);font-size:12px}
.woocommerce span.onsale{background:var(--red)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--blue);color:#fff;border-radius:10px;font-weight:700;padding:10px 16px;font-family:var(--body)}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:#0F52B5;color:#fff}
.woocommerce button.single_add_to_cart_button,.woocommerce a.checkout-button,.woocommerce #place_order{background:var(--yellow)!important;color:var(--yellow-ink)!important}
.woocommerce div.product .product_title{font-size:26px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-size:24px;font-weight:700}
.woocommerce div.product div.images img{border-radius:12px;background:var(--surface)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--surface)}
.woocommerce .quantity .qty{padding:8px;border:1px solid var(--line);border-radius:8px}
.woocommerce-message,.woocommerce-info{border-top-color:var(--blue)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--blue)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}
.woocommerce-account .woocommerce{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.woocommerce-account .woocommerce>*{flex:1 1 100%;min-width:0}
.woocommerce-account .woocommerce-MyAccount-navigation{flex:0 0 230px;float:none;width:auto}
.woocommerce-account .woocommerce-MyAccount-content{flex:1 1 420px;float:none;width:auto}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.woocommerce-MyAccount-navigation a{display:block;padding:9px 12px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-weight:600}
.woocommerce-MyAccount-navigation .is-active a{background:var(--blue);color:#fff}
@media (max-width:760px){.woocommerce-account .woocommerce-MyAccount-navigation{flex:1 1 100%}}
.woocommerce table.shop_table{border-radius:12px;background:var(--surface);border-color:var(--line)}
.wc-block-components-button:not(.is-link){background:var(--yellow);color:var(--yellow-ink)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.woocommerce-account .woocommerce>*:empty{display:none}

@media (max-width:760px){
  .logo{flex:1;min-width:0}
  .logo>span:last-child{min-width:0}
  .logo b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:480px){
  .pillar{flex-direction:column;align-items:flex-start;gap:8px}
  .pillar b{font-size:15.5px;overflow-wrap:normal}
  .fab{padding:12px}
  .fab .fab-t{display:none}
}
.woocommerce div.product span.onsale{top:12px;left:12px}
