/*
Theme Name: Mattitan B2B
Theme URI: https://mattitan.com.tw
Author: Mattitan
Description: Responsive B2B fastener catalog theme for Mattitan International Co., Ltd.
Version: 6.1.0
Text Domain: mattitan
*/
:root{--blue:#087bd3;--navy:#063d78;--green:#13aa78;--ink:#10233c;--muted:#657486;--line:#d6e9e7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Arial,Helvetica,sans-serif;background:#fff}a{color:inherit;text-decoration:none}.mt-top{padding:9px 5vw;display:flex;justify-content:space-between;background:linear-gradient(90deg,#053f78,#0877ba,#0d9c79);color:#fff;font-size:12px}.mt-header{height:84px;padding:0 5vw;display:flex;align-items:center;gap:30px;position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 5px 22px rgba(3,59,108,.09)}.mt-brand{display:flex;align-items:center;gap:12px;margin-right:auto}.mt-brand img{width:61px;height:60px;object-fit:contain}.mt-brand b,.mt-brand small{display:block}.mt-brand b{color:#075da6;font-size:21px;letter-spacing:.07em}.mt-brand small{margin-top:3px;color:#4b7392;font-size:9px;letter-spacing:.16em}.mt-nav{height:100%;display:flex;align-items:center;gap:28px}.mt-nav a{height:100%;display:flex;align-items:center;border-bottom:3px solid transparent;font-size:12px;font-weight:700}.mt-nav a:hover{color:var(--blue);border-color:var(--green)}.mt-quote,.mt-button{padding:15px 21px;display:inline-flex;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--blue),var(--green));font-size:11px;font-weight:800}.mt-menu-btn{display:none;border:0;background:var(--blue);color:#fff;font-size:22px}.mt-hero,.mt-category-hero{min-height:590px;display:grid;grid-template-columns:1.08fr .92fr;background:linear-gradient(135deg,var(--navy),#087ab9 58%,#11a678);color:#fff;overflow:hidden}.mt-hero>div,.mt-category-hero>div{padding:100px 7vw 70px}.mt-eyebrow{margin:0 0 18px;color:#0b9875;font-size:11px;font-weight:800;letter-spacing:.2em}.mt-hero .mt-eyebrow,.mt-category-hero .mt-eyebrow,.mt-quality .mt-eyebrow,.mt-videos .mt-eyebrow{color:#bceee2}.mt-hero h1,.mt-category-hero h1,.mt-videos h1{margin:0;font-size:clamp(46px,5vw,76px);line-height:1;letter-spacing:-.04em}.mt-hero p:not(.mt-eyebrow),.mt-category-hero p:not(.mt-eyebrow){max-width:660px;margin:30px 0;color:#d3e7ec;font-size:18px;line-height:1.7}.mt-hero>img,.mt-category-hero>img{width:100%;height:100%;object-fit:cover}.mt-category-hero>img{padding:50px;background:#fff;object-fit:contain}.mt-metrics{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.mt-metrics div{padding:27px;text-align:center;border-right:1px solid var(--line)}.mt-metrics b,.mt-metrics span{display:block}.mt-metrics b{color:#078b82;font-size:20px}.mt-metrics span{margin-top:7px;color:var(--muted);font-size:12px}.mt-intro{max-width:1440px;margin:auto;padding:100px 6vw;display:grid;grid-template-columns:.5fr 1.5fr;gap:65px}.mt-intro h2,.mt-section-head h2,.mt-quality h2{margin:0;font-size:clamp(32px,3.7vw,54px);line-height:1.1}.mt-intro p:not(.mt-eyebrow){max-width:850px;color:var(--muted);font-size:17px;line-height:1.8}.mt-products{padding:90px 5vw;background:linear-gradient(180deg,#edf8fc,#effaf5)}.mt-section-head{max-width:1440px;margin:0 auto 42px;display:flex;justify-content:space-between;align-items:end;gap:30px}.mt-section-head>p{max-width:450px;color:var(--muted);line-height:1.7}.mt-grid{max-width:1440px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.mt-grid article,.mt-product-detail-grid article{overflow:hidden;border:1px solid #cfe6e5;border-radius:10px;background:#fff;box-shadow:0 7px 22px rgba(4,75,99,.06);transition:.2s}.mt-grid article:hover,.mt-product-detail-grid article:hover{transform:translateY(-4px);border-color:var(--green);box-shadow:0 16px 34px rgba(4,94,111,.14)}.mt-grid img{width:100%;height:190px;padding:10px;display:block;object-fit:contain;background:#fff}.mt-grid h3{margin:17px 18px 8px;color:#07689d;font-size:20px}.mt-grid p{min-height:62px;margin:0 18px;color:var(--muted);font-size:13px;line-height:1.55}.mt-grid b{display:block;margin:20px 18px;color:#078b82;font-size:10px}.mt-quality{padding:95px 6vw;color:#fff;background:linear-gradient(135deg,#053c73,#0879a9 58%,#0a8e70)}.mt-quality>div{margin-top:50px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(255,255,255,.25)}.mt-quality article{padding:30px 26px;border-right:1px solid rgba(255,255,255,.2)}.mt-quality article>b{color:#4ce1bd}.mt-quality article p{color:#c7dfe3;line-height:1.6}.mt-product-detail-grid{max-width:1440px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mt-product-detail-grid article{display:flex;flex-direction:column}.mt-product-detail-grid img{width:100%;height:245px;padding:12px;object-fit:contain}.mt-product-detail-grid article>div{padding:22px}.mt-product-detail-grid h3{margin:0 0 16px;color:#07689d}.mt-product-detail-grid dl{display:grid;grid-template-columns:85px 1fr;margin:0}.mt-product-detail-grid dt,.mt-product-detail-grid dd{padding:8px 0;border-bottom:1px solid #e6efef}.mt-product-detail-grid dt{color:#83909b;font-size:9px;font-weight:800;text-transform:uppercase}.mt-product-detail-grid dd{margin:0;font-size:11px}.mt-product-detail-grid article a{display:inline-block;margin-top:18px;color:#078b82;font-size:10px;font-weight:800}.mt-videos{min-height:700px;padding:80px 6vw;color:#fff;background:linear-gradient(135deg,#053c73,#0879a9 58%,#0a8e70)}.mt-videos>div{max-width:1200px;margin:50px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.mt-videos article{padding:9px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2)}.mt-videos iframe{width:100%;aspect-ratio:16/9;border:0}.mt-videos h3{font-size:14px}.mt-map iframe{width:100%;height:470px;display:block;border:0}footer{padding:65px 6vw 25px;display:grid;grid-template-columns:1.8fr .7fr .8fr;gap:50px;color:#d5e2e4;background:linear-gradient(110deg,#04345f,#075f78 56%,#08745e)}.mt-footer-brand{display:flex;gap:17px}.mt-footer-brand img{width:85px;height:78px;padding:5px;object-fit:contain;background:#fff}.mt-footer-brand h2{margin:0;color:#fff;font-size:20px}footer h3{color:#fff;font-size:12px;letter-spacing:.14em}footer p,footer a{font-size:13px;line-height:1.7}footer small{grid-column:1/-1;padding-top:22px;border-top:1px solid rgba(255,255,255,.15)}.mt-dock{position:fixed;top:45%;right:0;z-index:80;display:flex;align-items:center}.mt-contact-tab{width:52px;height:155px;border:0;border-radius:15px 0 0 15px;color:#fff;background:linear-gradient(#078bc2,#06618e);font-weight:800;letter-spacing:.1em;writing-mode:vertical-rl;cursor:pointer}.mt-contact-panel{width:0;max-height:420px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:hidden;background:linear-gradient(145deg,#063d78,#0b7b60);transition:.25s}.mt-dock.open .mt-contact-panel{width:230px;padding:14px}.mt-contact-panel a,.mt-contact-panel button{padding:11px 7px;border:0;border-radius:7px;color:#fff;background:rgba(255,255,255,.1);font-size:11px;text-align:center;cursor:pointer}.mt-modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:15px;background:rgba(2,17,27,.75)}.mt-modal.show{display:grid}.mt-modal-card{width:min(390px,100%);position:relative;padding:25px;text-align:center;border-radius:20px;background:#fff}.mt-modal-card>img{width:100%;height:230px;padding:10px;object-fit:contain;border:1px solid #e2e8e8;border-radius:15px}.mt-close{position:absolute;right:13px;top:10px;border:0;background:#eef1f1;font-size:30px;cursor:pointer}.mt-modal-card .mt-button{margin-top:13px;width:100%}
@media(max-width:1100px){.mt-grid{grid-template-columns:repeat(3,1fr)}.mt-product-detail-grid{grid-template-columns:1fr 1fr}.mt-quote{display:none}}
@media(max-width:800px){.mt-top span:first-child{display:none}.mt-top{justify-content:center}.mt-header{height:72px}.mt-menu-btn{display:block}.mt-nav{display:none;position:absolute;left:0;right:0;top:72px;height:auto;padding:15px;grid-template-columns:1fr 1fr;background:#fff}.mt-nav.open{display:grid}.mt-nav a{padding:12px}.mt-hero,.mt-category-hero{grid-template-columns:1fr;min-height:0}.mt-hero>img,.mt-category-hero>img{height:330px;order:-1}.mt-hero>div,.mt-category-hero>div{padding:65px 25px}.mt-metrics{grid-template-columns:1fr 1fr}.mt-intro{grid-template-columns:1fr}.mt-grid{grid-template-columns:1fr 1fr}.mt-quality>div{grid-template-columns:1fr 1fr}.mt-videos>div{grid-template-columns:1fr 1fr}footer{grid-template-columns:1fr}footer small{grid-column:1}.mt-dock{top:auto;bottom:20px}.mt-contact-panel{max-height:360px}}

/* Mattitan contact dock — compact two-column social panel */
.mt-contact-tab{width:56px;height:164px;border:1px solid rgba(255,255,255,.55);border-radius:18px 0 0 18px;box-shadow:0 10px 28px rgba(0,37,62,.28)}.mt-tab-chat{margin-bottom:8px;font-size:18px;animation:mtPulse 1.8s infinite}.mt-contact-panel{display:block;max-height:530px;background:linear-gradient(155deg,rgba(4,54,91,.98),rgba(7,113,92,.98));box-shadow:0 18px 48px rgba(0,20,35,.34);transition:width .28s ease,padding .28s ease}.mt-dock.open .mt-contact-panel{width:258px;padding:14px}.mt-panel-head{height:36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.18)}.mt-panel-head b{font-size:15px;letter-spacing:.08em}.mt-panel-close{width:30px;height:30px;padding:0!important;border:0!important;border-radius:50%!important;color:#fff;background:rgba(255,255,255,.12)!important;font-size:22px!important;cursor:pointer}.mt-social-grid{padding:12px 4px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px 10px}.mt-contact-panel .mt-social{min-width:0;padding:0;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;background:none;font-size:inherit;cursor:pointer}.mt-social>span{width:47px;height:47px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#1685c5;box-shadow:inset 0 -4px 0 rgba(0,0,0,.17),0 0 0 4px rgba(255,255,255,.07);font-size:22px;font-weight:800;line-height:1;animation:mtOnline 2.5s infinite}.mt-social small{font-size:9px;font-weight:800}.mt-social:nth-child(2n)>span{animation-delay:.35s}.mt-social.instagram>span{background:linear-gradient(135deg,#8c2bb8,#f03d75,#f59a3a)}.mt-social.facebook>span{background:#1877f2}.mt-social.x>span{background:#050505}.mt-social.youtube>span{background:#f10d0d;font-size:17px}.mt-social.whatsapp>span,.mt-social.line>span,.mt-social.wechat>span{background:#08c969}.mt-social.zalo>span,.mt-social.line>span{font-size:11px}.mt-social.linkedin>span{background:#0876c9;font-size:17px}.mt-social.telegram>span{background:#24a4dc}.mt-panel-number{padding:9px 3px 2px;display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.17);font-size:9px}.mt-panel-number b{font-size:10px}.mt-modal-card{width:min(370px,94vw);max-height:92vh;overflow:auto;padding:22px;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.mt-modal-card h2{margin:10px 0 6px}.mt-modal-card p{margin:0 0 14px;color:#687078;font-size:13px;line-height:1.45}.mt-modal-brand{width:55px;height:55px;margin:auto;display:grid;place-items:center;border-radius:17px;color:#fff;background:#08c969;font-size:13px;font-weight:900}.mt-modal-brand.wechat{border-radius:50%;font-size:24px}.mt-modal-card>img{height:220px}.mt-close{width:40px;height:40px;border-radius:50%;font-size:28px}.mt-id-row{margin-top:12px;padding:12px;display:flex;justify-content:space-between;border-radius:10px;background:#f4f6f6;font-size:13px}.mt-modal-actions{margin-top:10px;display:grid;grid-template-columns:1fr 1.3fr;gap:8px}.mt-modal-card .mt-button,.mt-copy{min-height:46px;margin:0;border:0;border-radius:9px;font-weight:800}.mt-copy{background:#edf0f1;cursor:pointer}.mt-copy.full{width:100%;margin-top:10px;color:#fff;background:#08c969}@keyframes mtPulse{50%{opacity:.55;transform:scale(.82)}}@keyframes mtOnline{0%,100%{transform:scale(1)}50%{transform:scale(1.07);box-shadow:inset 0 -4px 0 rgba(0,0,0,.17),0 0 0 7px rgba(27,220,164,.12)}}@media(hover:hover) and (min-width:801px){.mt-dock:hover .mt-contact-panel{width:258px;padding:14px}}@media(max-width:800px){.mt-dock.open .mt-contact-panel{width:min(258px,calc(100vw - 68px));max-height:72vh;overflow:auto}.mt-contact-tab{height:145px}.mt-social>span{width:44px;height:44px}.mt-modal-card>img{height:195px}}@media(max-width:520px){.mt-grid,.mt-videos>div,.mt-quality>div{grid-template-columns:1fr}.mt-hero h1,.mt-category-hero h1,.mt-videos h1{font-size:42px}}
@media(max-width:520px){.mt-brand b{font-size:17px}.mt-brand small{font-size:7px}.mt-brand img{width:50px;height:50px}.mt-grid,.mt-product-detail-grid,.mt-videos>div{grid-template-columns:1fr}.mt-section-head{display:block}.mt-quality>div{grid-template-columns:1fr}.mt-product-detail-grid img{height:220px}}

/* v1.2 compact dock and footer channel icons */
.mt-dock.open .mt-contact-panel,.mt-dock:hover .mt-contact-panel{width:218px;padding:10px}.mt-contact-panel{height:342px;max-height:342px}.mt-contact-tab{width:49px;height:145px}.mt-panel-head{height:28px}.mt-panel-head b{font-size:12px}.mt-panel-close{width:25px;height:25px!important;font-size:18px!important}.mt-social-grid{padding:7px 2px;gap:3px 8px}.mt-social>span{width:32px;height:32px;font-size:16px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.16),0 0 0 3px rgba(255,255,255,.07)}.mt-social small{font-size:7px}.mt-social.zalo>span,.mt-social.line>span{font-size:8px}.mt-panel-number{padding-top:5px;font-size:7px}.mt-panel-number b{font-size:8px}.mt-footer-social{max-width:210px;margin-top:18px;display:grid;grid-template-columns:repeat(6,28px);gap:8px}.mt-footer-social a,.mt-footer-social button{width:28px;height:28px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;color:#fff;background:#1185b7;font-size:11px;font-weight:800;line-height:1;cursor:pointer}.mt-footer-social a:nth-child(2){background:linear-gradient(135deg,#8c2bb8,#f03d75,#f59a3a)}.mt-footer-social a:nth-child(3){background:#1877f2}.mt-footer-social a:nth-child(4){background:#050505}.mt-footer-social a:nth-child(5){background:#f10d0d}.mt-footer-social a:nth-child(6),.mt-footer-social button:nth-child(8),.mt-footer-social button:nth-child(9){background:#08c969}.mt-footer-social a:nth-child(10){background:#0876c9}.mt-footer-social a:nth-child(11){background:#24a4dc}@media(max-width:800px){.mt-dock.open .mt-contact-panel{width:218px;height:342px;max-height:342px;overflow:hidden}}

/* Exact V33 contact module transplanted from the approved Mattitan source */
.mt-v33-dock{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:180;display:flex;align-items:center;pointer-events:none;font-family:Arial,sans-serif}.mt-v33-tab{width:42px;min-height:146px;padding:10px 5px;border:0;border-radius:18px 0 0 18px;background:linear-gradient(180deg,#1599da,#0874a8);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:-7px 12px 28px rgba(0,74,118,.28);cursor:pointer;pointer-events:auto}.mt-v33-tab>span:nth-child(2){writing-mode:vertical-rl;transform:rotate(180deg);font-weight:900;font-size:13px;letter-spacing:1.2px}.mt-v33-tab .chat{font-size:17px}.mt-v33-tab .arrow{font-size:22px;line-height:1}.mt-v33-dock.is-open .arrow{transform:rotate(180deg)}.mt-v33-panel{width:0;height:0;overflow:hidden;opacity:0;color:#fff;border-radius:14px 0 0 14px;background:linear-gradient(155deg,rgba(50,64,56,.97),rgba(11,47,25,.98) 58%,rgba(117,12,17,.97));box-shadow:-14px 22px 48px rgba(0,0,0,.3);transform:translateX(20px);transition:width .3s,height .3s,opacity .2s,transform .3s;pointer-events:none}.mt-v33-dock.is-open .mt-v33-panel{width:3cm;height:8.5cm;opacity:1;transform:translateX(0);pointer-events:auto}.mt-v33-panel-head{height:26px;min-width:3cm;padding:0 6px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.16);font-size:9px}.mt-v33-panel-head button{width:21px;height:21px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:16px;line-height:1;cursor:pointer}.mt-v33-grid{min-width:3cm;height:calc(8.5cm - 26px);padding:3px 4px 5px;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,47px);gap:0 3px;align-content:start;overflow:hidden}.mt-v33-ci{height:47px;padding:1px 0 0;border:0;background:none;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;font:inherit;font-size:6px;font-weight:800;cursor:pointer}.mt-v33-ci i,.mt-v33-ci>b{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:15px;box-shadow:0 0 0 3px rgba(255,255,255,.07),0 2px 7px rgba(0,0,0,.22);animation:mtv33pulse 2.1s ease-out infinite}.mt-v33-ci>b{font-size:7px}.mt-v33-ci span{width:100%;max-width:50px;color:#fff;font-size:6px;line-height:7px;text-align:center;white-space:normal}.mt-v33-ci.email i{background:#f0443d}.mt-v33-ci.instagram i{background:linear-gradient(145deg,#7b2dcc,#e63872,#f39a3d)}.mt-v33-ci.facebook i{background:#1877f2}.mt-v33-ci.x i{background:#050505}.mt-v33-ci.youtube i{background:#f10b0b}.mt-v33-ci.whatsapp i{background:#21c968}.mt-v33-ci.zalo>b{background:#0879ed}.mt-v33-ci.line>b{background:#08c33d}.mt-v33-ci.wechat i{background:#10bf66}.mt-v33-ci.linkedin i{background:#0a66c2}.mt-v33-ci.telegram i{background:#229ed9}@keyframes mtv33pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}.mt-v33-footer-social{padding:16px 6vw;display:grid;grid-template-columns:minmax(210px,.62fr) 1.8fr;align-items:center;gap:22px;color:#fff;background:linear-gradient(110deg,#074379,#0c75ca)}.mt-v33-social-copy>span{font-size:9px;letter-spacing:2px;font-weight:900}.mt-v33-social-copy h2{font-size:21px;line-height:1.2;margin:8px 0 0}.mt-v33-footer-icons{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.mt-v33-footer-icons>a,.mt-v33-footer-icons>button{width:32px;height:32px;padding:0;border:0;border-radius:8px;color:#fff;display:grid;place-items:center;text-decoration:none;font-size:15px;box-shadow:0 3px 7px rgba(0,0,0,.14);cursor:pointer}.mt-v33-footer-icons b{font-size:7px}.mt-v33-footer-icons .email{background:#f0443d}.mt-v33-footer-icons .instagram{background:linear-gradient(145deg,#7b2dcc,#e63872,#f39a3d)}.mt-v33-footer-icons .facebook{background:#1877f2}.mt-v33-footer-icons .x{background:#050505}.mt-v33-footer-icons .youtube{background:#f10b0b}.mt-v33-footer-icons .whatsapp{background:#21c968}.mt-v33-footer-icons .zalo{background:#0879ed}.mt-v33-footer-icons .line{background:#08c33d}.mt-v33-footer-icons .wechat{background:#10bf66}.mt-v33-footer-icons .linkedin{background:#0a66c2}.mt-v33-footer-icons .telegram{background:#229ed9}.mt-v33-modal{position:fixed;inset:0;z-index:300;background:rgba(3,13,22,.73);backdrop-filter:blur(6px);display:none;place-items:center;padding:20px}.mt-v33-modal.is-open{display:grid}.mt-v33-modal-card{width:min(390px,94vw);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;text-align:center;position:relative;box-shadow:0 28px 90px rgba(0,0,0,.35)}.mt-v33-modal-close{position:absolute;right:14px;top:14px;border:0;background:#eef0f1;width:38px;height:38px;border-radius:50%;font-size:25px;cursor:pointer}.mt-v33-badge{width:58px;height:58px;border-radius:18px;margin:0 auto 10px;display:grid;place-items:center;color:#fff;font-weight:900}.mt-v33-badge.line{background:#08c33d}.mt-v33-badge.wechat{background:#10bf66;font-size:24px}.mt-v33-modal-card h2{font-size:26px;margin:7px 0}.mt-v33-modal-card p{color:#5d666b}.mt-v33-modal-card img{display:block;width:100%;height:220px;object-fit:contain;margin:15px auto;border:1px solid #e1e5e7;border-radius:15px}.mt-v33-modal-action{display:block;background:#08c33d;color:#fff!important;padding:13px 18px;border-radius:10px;font-weight:900;text-decoration:none}@media(max-width:700px){.mt-v33-dock{top:auto;bottom:78px;transform:none}.mt-v33-footer-social{grid-template-columns:1fr;padding:14px;gap:12px}.mt-v33-footer-icons{justify-content:flex-start}.mt-v33-social-copy h2{font-size:18px}.mt-v33-footer-icons>a,.mt-v33-footer-icons>button{width:30px;height:30px;font-size:14px}}
